第一种Import import time as t print(t.localtime()) 结果 第二种Import from time import time,localtime print(localtime()) print(time()) 结果