Afficher le processus d'exécution du programme
tqdm.py
# -*- coding: utf-8 -*-
from tqdm import tqdm
import time
for i in tqdm(range(100)):
time.sleep(0.01)
'''
0%| | 0/100 [00:00<?, ?it/s]
9%|9 | 9/100 [00:00<00:01, 82.57it/s]
17%|#7 | 17/100 [00:00<00:01, 81.53it/s]
26%|##6 | 26/100 [00:00<00:00, 81.84it/s]
34%|###4 | 34/100 [00:00<00:00, 80.79it/s]
43%|####3 | 43/100 [00:00<00:00, 81.31it/s]
51%|#####1 | 51/100 [00:00<00:00, 79.94it/s]
61%|######1 | 61/100 [00:00<00:00, 83.57it/s]
70%|####### | 70/100 [00:00<00:00, 84.92it/s]
79%|#######9 | 79/100 [00:00<00:00, 84.20it/s]
88%|########8 | 88/100 [00:01<00:00, 84.17it/s]
97%|#########7| 97/100 [00:01<00:00, 84.87it/s]
100%|##########| 100/100 [00:01<00:00, 83.26it/s]
'''
Recommended Posts