Answers for "list of files to zip python"

0

list of files to zip python

import zipfile

lista_files = ["12.csv","13.csv","14.csv"]
with zipfile.ZipFile('out.zip', 'w') as zipMe:        
    for f in lista_files:
        zipMe.write(f, compress_type=zipfile.ZIP_DEFLATED)
Posted by: Guest on June-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language