python输出当前运行时间 在python程序中输出运行时间 import time print("本程序执行于:", time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))