python,显示进度条,tqdm模块简单使用

第一步,直接pip install tqdm
第二步,直接上代码


from tqdm import tqdm
from time import sleep

for i in tqdm(range(1000), desc='1st loop', ncols=75):
    sleep(0.01)

猜你喜欢

转载自www.cnblogs.com/weisunblog/p/12204664.html