Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. fp = open('myzip.zip', 'w')
  2. archive = zipfile.ZipFile(fp, 'w', zipfile.ZIP_DEFLATED)
  3. for filepath in filepaths:
  4. archive.write(filepath)
  5. archive.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement