import datetime as d
print(d.datetime.now().strftime("%Y.%m.%d-%H:%M:%S"))
#2017.12.17-09:51:07
Python得到当前时间
最新推荐文章于 2024-08-22 14:09:21 发布
import datetime as d
print(d.datetime.now().strftime("%Y.%m.%d-%H:%M:%S"))
#2017.12.17-09:51:07