标签:暂停 格式化 print time ftime ref class int port
暂停一秒输出,并格式化当前时间
(主要涉及时间模块的使用,详情可以查看:https://www.cnblogs.com/zivli/p/9615523.html)
my_code:
import time
print(time.strftime('%Y-%m-%d %X',time.localtime()));
time.sleep(1);
print(time.strftime('%Y-%m-%d %X',time.localtime()))
标签:暂停 格式化 print time ftime ref class int port
原文地址:https://www.cnblogs.com/lovely-bones/p/11625057.html