Python获取当前日期及时间

import time
def GetNowTime():
    return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
print(GetNowTime())
原文地址:https://www.cnblogs.com/Bug-Hunter/p/5482433.html