云哥 497浏览 0评论 2020-03-04
import time print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
打印如下结果
2020-03-01 12:20:18