python3中获取当前时间

2018-01-23  本文已影响0人  不见长安丶灬

import time

print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))

上一篇 下一篇

猜你喜欢

热点阅读