import datetime import time # 当前时间戳 now = time.time() print(now) # 时间戳转换成时间元祖 now = time.localtime(now) print(now) # 时间戳转换成可视化时间 # t = time.ctime(now) # print(t) # 时间元祖转换成时间戳 t = time.mktime((2019,9,17,19,10,30,1,260,0)) print(time.mktime(now)) print…