컴퓨터/Python

python tqdm 진행률

풍경소리^^ 2020. 10. 16. 18:33

from tqdm import tqdm_notebook

for i in tqdm_notebook(range(1,101)):
    count=0
    for j in range(1000000):
        count+=1
print(count)

from tqdm.auto import tqdm

 

count=0

total=0

for i in tqdm(range(10000)):

    count+=1

    total+=count

    print(" ",end='\r')

print("합계는 "+format(total,',')+" 입니다.")