A Fast, Extensible Progress Bar for Python and CLI
参考:github_tqdm
简单使用,后续完善
from tqdm import tqdm
from time import sleep
for i in tqdm(range(int(1000)), ncols=100):
sleep(0.001)
效果
72%|███████████████████████████████████████████▎ | 721/1000 [00:11<00:04, 63.21it/s]