代码:可打印当时时间import datetimeprint(datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S"))
2017/08/02 11:37:32