Skip to Content
전문가를 위한 파이썬(2판)
book

전문가를 위한 파이썬(2판)

by 루시아누 하말류, 강권학
November 2024
Beginner to intermediate
1064 pages
25h 21m
Korean
Hanbit Media, Inc.
Content preview from 전문가를 위한 파이썬(2판)
857
20
동시 실행자
break
else:
error_msg = ‘’
if error_msg:
status = DownloadStatus.ERROR
counter[status] += 1
if verbose and error_msg:
cc = to_do_map[future] ⓮
print(f’{cc} error: {error_msg}’)
return counter
if __name__ == ‘__main__’:
main(download_many, DEFAULT_CONCUR_REQ, MAX_CONCUR_REQ)
flags2
_
sequential
모듈 (예제
20
-
14
)에서 가져온
download
_
one
()
함수를 재사용한다.
-
m
/
--
max
_
req
명령행 옵션을 지정하지 않으면 이 숫자가 최대 동시 요청 수가 되며, 스레드 풀의 크기
로 사용된다. 내려받는 국기의 숫자가 더 적으면, 실제 숫자가 더 적어질 수 있다.
MAX
_
CONCUR
_
REQ
는 내려받을 국기의 숫자나 명령행 옵션
-
m
/
--
max
_
req
에 상관없이 동시 요청 수를
제한한다. 스레드를 너무 많이 실행해 메모리에 과부하가 걸리는 일을 막는 일종의 안전장치다.
MAX
_
CONCUR
_
REQ
,
cc
_
list
길이,
-
m
/
--
max
_
req
인숫값 중에서
main
()
이 찾아낸 가장 작은 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

전문가를 위한 리액트

전문가를 위한 리액트

테자스 쿠마르
고성능 파이썬(2판)

고성능 파이썬(2판)

오현석, 미샤 고렐릭, 이안 오스발트

Publisher Resources

ISBN: 9791169211772