import time
from tqdm import *
for i in tqdm(range(100)):
if i%2 == 0:
print("未曾清贫难为人,不经挫折永天真。")
time.sleep(.1) #进度条每0.1s前进一次,总时间为1000*0.1=100s
else:
print("回首向来萧瑟处,归去,也无风雨也无晴!")
time.sleep(.1) #进度条每0.1s前进一次,总时间为1000*0.1=100s