当Python脚本中有遍历操作时,使用进度条控件可以让我们知道程序运行的进度。Python中有tqdm模块提供了进度条控件,使用方式如下:
tqdm
from tqdm import tqdm for key in tqdm(range(26)): pass