10. 暂停一秒输出,并格式化当前时间。

"""
暂停一秒输出,并格式化当前时间。
"""
import time

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

`
posted @ 2024-09-21 10:39  人要靠自己you  阅读(20)  评论(0)    收藏  举报