📅  最后修改于: 2022-03-11 14:46:22.181000             🧑  作者: Mango
from tqdm import trange
from time import sleep
t = trange(100, desc='Bar desc', leave=True)
for i in t:
t.set_description("Bar desc (file %i)" % i) # add dynamic bar description
t.refresh() # to show immediately the update
sleep(0.01)