Python学习日志(10)

题目:暂停一秒输出,并格式化当前时间。
思考:无分析
import time

time.sleep(1)

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

猜你喜欢

转载自blog.csdn.net/weixin_42618977/article/details/83988941