import zipfile
with zipfile.ZipFile('doc.zip', 'r') as zf:
z.extractall() # 현재 폴더에 해제
# 특정 폴더에 해제하려면 인자로 전달
z.extractall('Downloads')
'개발 > 파이썬' 카테고리의 다른 글
Selenium에서 DevToolsActivePort file doesn't exist (0) | 2022.06.25 |
---|---|
파이썬으로 구글 플레이 수익 보고서 다운받기 (0) | 2022.01.03 |
셀레니움을 위한 크롬 드라이버 자동 설치 (0) | 2021.12.25 |
wxpython에서 항상 맨 위로 오는 윈도우 (0) | 2021.11.27 |
Flask의 make_response에서 TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list. (0) | 2021.11.03 |
댓글