Comment montrer la barre de processus dans Terminal Python
# pip install tqdm
import tqdm
for i in tqdm.tqdm(range(100)):
print(i)
Shanti
# pip install tqdm
import tqdm
for i in tqdm.tqdm(range(100)):
print(i)
# pip install alive_bar
with alive_bar(total) as bar: # declare your expected total
for item in items: # <<-- your original loop
print(item) # process each item
bar() # call `bar()` at the end