Show the operation of tqdm, it is really good

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

(219 messages) Python installs numpy, matplotlib Tsinghua source quick installation_Tsinghua source installs numpy_Vertira's Blog-CSDN Blog

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%

Guess you like

Origin blog.csdn.net/Vertira/article/details/130196801