본문 바로가기
Python/라이브러리

[Python/라이브러리] tqdm 라이브러리

by 기록하는_사람 2022. 10. 5.

tqdm 라이브러리

📌 tqdm 라이브러리

: 진행률을 알 수 있는 라이브러리.

 

tqdm 라이브러리 설치

📌 tqdm 라이브러리 설치

cmd창에 다음을 입력해 설치.

pip install tqdm

 

tqdm 라이브러리 사용 예시 

❓ 파일에 50000 출력할 동안 진행률을 확인하는 프로그램.

from tqdm import tqdm

f =  open("cnt.txt", "w")

for i in tqdm(range(50000)):
    f.write(f"{i}\n")

 

 

 

댓글