압축 파일 해제하기
1.
!unzip 리눅스 명령어
!unzip -qq '/파일 경로/파일명.zip' -d '저장할 dir위치 경로'
Python
복사
2.
파이썬 zipfile 모듈 이용하기
import zipfile
zip_file = zipfile.Zipfile('/파일경로/파일명.zip') # 압축을 해제할 파일경로 및 파일명
zip_file.extractall('/위치경로/') # 압축을 해제할 위치경로
Python
복사
구글 드라이브 연동하기
from google.colab import drive
drive.mount('/content/gdrive/')
Python
복사