Using Python ZipFile.extractall to decompress a ZIP file
suggest changefile_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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents