1. 安装tqdm库
2. 导入tqdm函数
3. 在for循环中用tqdm()将被循环的部分框住
#intall 'tqdm' library
pip intall tqdm
#import tqdm function
from tqdm import tqdm
num_list = list(range(0,10000))
total = 1
#wrap the iteration with tqdm to create a progress bar
for i in tqdm(num_list):
total = total*i