python获取系统时间

python获取系统时间:

from datetime import datetime

dt=datetime.now()
date=dt.strftime('%Y-%m-%d-%H-%M-%S')
print(date)
原文地址:https://www.cnblogs.com/ming-4/p/11700596.html