import time
import datetime

t = time.time()

print (t)                       #原始时间数据
print (int(t))                  #秒级时间戳
print (int(round(t * 1000)))    #毫秒级时间戳
print (int(round(t * 1000000))) #微秒级时间戳

 

posted on 2020-04-20 10:20  二豆  阅读(153)  评论(0编辑  收藏  举报