Created
September 30, 2022 14:36
-
-
Save hazadus/6e4d31752867b27db3f59e1b503ab64d to your computer and use it in GitHub Desktop.
unzip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zipfile | |
def unzip(zip_filename): | |
zip_file = zipfile.ZipFile(zip_filename, 'r') | |
for zipped_file in zip_file.namelist(): | |
zip_file.extract(zipped_file) | |
zip_file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment