打印当前时间

import time
t = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))

  

原文地址:https://www.cnblogs.com/qiaoer1993/p/10933024.html