python compactar arquivo antes de exportar

Solutions on MaxInterview for python compactar arquivo antes de exportar by the best coders in the world

showing results for - "python compactar arquivo antes de exportar"
Chris
20 Mar 2018
1import zipfile
2
3z = zipfile.ZipFile('final.zip', 'w', zipfile.ZIP_DEFLATED)
4z.write('file1.txt')
5z.write('file2.txt')
6z.close()
similar questions
queries leading to this page
python compactar arquivo antes de exportar