unknown

To share this page click on the buttons below;

--> AUTHOR :> Daniele Aimo --> CREATION_DATE :> April 18 thsup> 2019 --> LAST_UPDATE :> November 12 thsup> 2019 --> LANGUAGE :> en --> META_DESCRIPTION :> Free notes about Python by w2note.net --> META_KEYWORDS :> Learn, Python, Tutorial, Notes, Free, Zip module --> ARGUMENT :> Python --> BANNER_TITLE :> Python --> HEAD_TITLE :> Python zip --> TITLE_FOR_LINK :> Python zip --> LINKEDIN_TITLE :> Python zip

Python - zip files

NOTE: what is contained between ‘<‘and ‘>‘ has to be considered as a placeholder for some ‘ actual‘ code.

Modules

Functions to handle files are in files zip are in zipfile module.

import zipfile

Estract content from zip and put it in

zip_ref = zipfile.ZipFile( <file> , 'r')
zip_ref.extractall(<dir>)
zip_ref.close()

To share this page click on the buttons below;