Answers for "ho to unzip a zip file in 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
0

extract zip file python

import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
    zip_ref.extractall(directory_to_extract_to)
Posted by: Guest on June-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language