#time模块常用命令
'''
time.time() 时间戳
time.localtime() 格式化时间戳
time.strftime() 日期和时间对象转换为其字符串
time.strptime() 将一个日期字符串转成datetime日期格式
'''
import datetime
import time
t = time.time()#时间戳 1672829554 10
print(t)
time.sleep(1)
print(time.localtime(t))
time模块常用命令
于 2023-01-04 17:00:58 首次发布