Python之输出当前时间

import time

print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
原文地址:https://www.cnblogs.com/huangshiyu13/p/7751657.html