一,源代码 from tqdm import tqdm from time import sleep for i in tqdm(range(100)): sleep(0.5) 二,代码结果: 三,实际使用时效果 欢迎扫码关注我的微信公众号