摘要:
import time import datetime timestamp = 1570774556514 # 转换成localtime time_local = time.localtime(timestamp/1000) # 转换成新的时间格式(精确到秒) dt = time.strftime("%Y-%m-%d %H:%M:%S", time_local) print(dt) # 2019- 阅读全文
posted @ 2019-10-11 14:22
平平无奇小辣鸡
阅读(19178)
评论(1)
推荐(1)

浙公网安备 33010602011771号