Python:毫秒级的时间戳

import datetime


print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'))
print(datetime.datetime.now().strftime('%Y%m%d%H%M%S%f'))


#输出:
#2018-08-17 11:19:53.485510
#20180817111953485510

 

你可能感兴趣的:(Python,Python,毫秒,级,时间,戳)