标签:sleep pre == imp time print flush load end
import time
print(‘==========Loading==========‘)
for i in range(0,101):
print(‘\r‘,f‘当前进度{i}%‘,end=‘‘,flush=True)
time.sleep(0.1)
print(‘==========上课倒计时==========‘)
for i in range(100,-1,-1):
print(‘\r‘,f‘上课倒计时{i}秒‘,end=‘‘,flush=True)
time.sleep(1)
标签:sleep pre == imp time print flush load end
原文地址:https://www.cnblogs.com/nancy-kou/p/13195489.html