编辑器
import zipfile with zipfile.ZipFile('example.zip', 'w') as myzip: myzip.writestr('hello.txt', 'Hello, Emil!') myzip.writestr('data.txt', 'Some data here') print('ZIP file created successfully')
ZIP file created successfully