python 时间戳

【python 时间戳】https://www.cnblogs.com/jfl-xx/p/8024596.html

2 now = int(time.time())# 1533952277 3 timeArray = time.localtime(now) 4 print timeArray 5 otherStyleTime = time.strftime("%Y--%m--%d %H:%M:%S", timeArray) 6 print otherStyleTime

    推荐阅读