Answers for "os method return zip file python"

5

how to unzip files using zipfile module python

import zipfile
with zipfile.ZipFile("file.zip","r") as zip_ref:
    zip_ref.extractall("targetdir")
Posted by: Guest on May-07-2020
7

python zip folder

import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Posted by: Guest on May-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language