def t_clock():
import time
while True:
s = time.asctime()
print(s[11:19],end="")
time.sleep(1)
print("\r",end="",flush = True)
t_clock()
用Python print 动态时间
最新推荐文章于 2024-06-14 08:43:47 发布
def t_clock():
import time
while True:
s = time.asctime()
print(s[11:19],end="")
time.sleep(1)
print("\r",end="",flush = True)
t_clock()