zf = zipfile.ZipFile('1116C.zip'), 'w', zipfile.ZIP_DEFLATED) zf.write('C1.txt') remove('C1.txt') zf.write('C2.txt') remove('C2.txt') zf.close()