← 返回列表

Python3 时间time模块 Strftime 方法

Python3 时间time模块 Strftime 方法 #!/usr/bin/python3 import time t = (2015, 12, 31, 10, 39, 45, 1, 48, 0) t = time.mktime(t) print (time.strftime("%b %d %Y %H:%M:%S", time.localtime(t)))

Python3 时间time模块 Strftime 方法

#!/usr/bin/python3
import time

t = (2015, 12, 31, 10, 39, 45, 1, 48, 0)
t = time.mktime(t)
print (time.strftime("%b %d %Y %H:%M:%S", time.localtime(t)))

打开资源 ↗

交流与评论