Извлечь zip -файл в Python Zipfile
from zipfile import ZipFile
import zipfile
with ZipFile('test.zip') as myzip:
with myzip.open('Roughwork/textfile.text') as myfile:
print(myfile.readlines())Copy Code
Pythonist