Answers for "python file to zip"

3

python zip file open as text

with ZipFile('spam.zip') as myzip:
    with myzip.open('eggs.txt') as myfile:
       eggs = io.TextIOWrapper(myfile)
Posted by: Guest on August-24-2020
0

how to extract zip file using python

ZipFile.extractall(path=None, members=None, pwd=None)
Posted by: Guest on May-19-2020
0

python zip files

import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Posted by: Guest on July-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language