Как разкапливать файлы с помощью модуля Zipfile Python
import zipfile
with zipfile.ZipFile("file.zip","r") as zip_ref:
zip_ref.extractall("targetdir")
Muddy Millipede
import zipfile
with zipfile.ZipFile("file.zip","r") as zip_ref:
zip_ref.extractall("targetdir")
import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
zip_ref.extractall(directory_to_extract_to)
from zipfile import ZipFile
import zipfile
myzip = ZipFile('test.zip')
myzip.extract(member='Roughwork/pretify.html')
ZipFile.extractall(path=None, members=None, pwd=None)