1、安装
pip install tqdm
2、使用
import time from tqdm import tqdm from tqdm._tqdm import trange for i in tqdm(range(100)): time.sleep(0.01)
效果如下: