python time

import time
strTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
log(logpath, "============"+strTime+"============")

 

timeStr = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())
posted @ 2021-05-10 16:28  bH1pJ  阅读(29)  评论(0编辑  收藏  举报