tqdm 进度条 python用

tqdm
是一个快速,可扩展的Python进度条
可以在 Python 长循环中添加一个进度提示信息,用户只需要封装任意的迭代器 tqdm(iterator)。

使用pip就可以安装。

  from tqdm import tqdm

  for i in tqdm(range(1000)):  
       #do something
       pass  
posted @ 2021-05-03 15:30  xinkevinzhang  阅读(55)  评论(0)    收藏  举报