Python is indeed very powerful, and various third-party development kits have various functions.
Show the effect today, open the conda virtual environment, install tqdm,
pip install tqdm
If you want to quickly install and try to change the source, refer to my blog is very simple
After installing tqdm
have a test
Installed without errors.
Tqdm is a fast and extensible Python progress bar , which can add a progress prompt message in the Python long loop, and the user only needs to encapsulate any iterator tqdm( iterator ).
Function display (progress bar)
>>> from tqdm import tqdm
>>> for k in tqdm(range(1000)):
... pass
...
100%|██████████████████████████████████████████████████████████████████████████████████████| 1000/1000 [00:00<?, ?it/s]
>>>
This is the function: the progress bar gradually changes to 100%