Using Python ZipFile.extractall to decompress a ZIP file

suggest change
file_unzip = 'filename.zip'
unzip = zipfile.ZipFile(file_unzip, 'r')
unzip.extractall()
unzip.close()

zipfile is not imported in this fragment, and filename.zip is not in this book. extractall() with no path extracts into the current directory.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents