tar파일 jupyternotebook으로 불러오기

화이팅·2023년 4월 1일
0

import tarfile

# open file
file = tarfile.open('gfg.tar.gz')
  
# extracting a specific file
file.extract('sample.txt', './Destination_FolderName')
  
file.close()

파일경로 확인 필수!!

출처 : https://www.geeksforgeeks.org/how-to-uncompress-a-tar-gz-file-using-python/

profile
하하...하.

0개의 댓글