python3中获取当前时间 2018-01-23 本文已影响0人 不见长安丶灬 import time print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))