Python 获取当前时间格式化

参考链接

直接上代码

import time
# 格式化成2016-03-20 11:45:39形式
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) )
posted @ 2020-04-18 00:22  Alex_Mercer  阅读(104)  评论(0编辑  收藏  举报