python之 loading进度条加载,和倒计时

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)

猜你喜欢

转载自www.cnblogs.com/nancy-kou/p/13195489.html