
如上图,这种格式是数字,现在需要把它换回日期格式
就用下面的代码:
import time
time1=1610032387
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time1))
print(otherStyleTime)

如上图,这种格式是数字,现在需要把它换回日期格式
就用下面的代码:
import time
time1=1610032387
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time1))
print(otherStyleTime)
550
2815
5593

被折叠的 条评论
为什么被折叠?
