반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- venv
- 구글 드라이브
- selenium
- 탐욕 알고리즘
- python
- G-Suite
- 추천 영상
- 리스트
- 알고리즘
- Google Drive
- List
- 유튜브
- 그리디 알고리즘
- flask
- 장고
- pymongo
- 깃허브
- DB
- 아이폰
- 코딩
- 링크
- 단축어
- 바로학교
- Django
- nocookie
- MongoDB
- gpu 병렬처리
- 파이썬
- docker-compose
- 충북
- Today
- 103
- Total
- 77,638
목록print한줄로 (1)
SSAMKO의 개발 이야기

요즘 크롤링 할 일이 많은데, 시간이 오래걸려서 현재 진행상황을 파악하고자 간단한 진행상황 표시기를 만들어 보았습니다. import time sample = [x for x in range(10)] def some_process(x): return True total = len(sample) start = time.time() for i, some in enumerate(sample): some_process(some) now = time.time() print(f'\r{i+1}/{total} runtime: {now - start:.2f}', end='') # Use follow code if your python version is before v3.6 # print('\r{}/{} runtime: ..
Python
2020. 12. 25. 18:38