Python package --tqdm

TqdmIs a fast, scalable Python progress bar may be added to a progress message, the user need only wrap any iterator tqdm (iterator) to complete the progress bar Python long cycle.

1. Install

pip install tqdm

2. tight

from tqdm import trange

This is a powerful tool for progress bar terminal.

from tqdm import tqdm
for i in tqdm(range(10000)):
  pass

76%|████████████████████████████ | 7568/10000 [00:33<00:10, 229.00it/s]

Resources

[1] tqdm documentation: Home

Published 66 original articles · won praise 101 · views 30000 +

Guess you like

Origin blog.csdn.net/u010705932/article/details/105265483