Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. with thiS:
  2.  
  3. with zipfile.ZipFile(outputFilename, "w") as zf:
  4. apu3 = formatLines(lists[2])
  5. zf.writestr("words_3.txt", "\n" + apu3)
  6.  
  7. I get this output:
  8.  
  9. words_3.txt
  10. age all and and and
  11. and and and and and
  12. but but can dav eit
  13. end ers for for fre
  14. gen has has he
  15. his
  16. his is
  17. is
  18. men not
  19. of
  20. off old one pe
  21.  
  22. sex six six the the
  23. the the the the the
  24. the the the the the
  25. the to
  26.  
  27.  
  28. with this:
  29.  
  30.  
  31. with zipfile.ZipFile(outputFilename, "w") as zf:
  32. apu2 = formatLines(lists[1])
  33. zf.writestr("words_2.txt", "\n" + apu2)
  34.  
  35. I get this:
  36. words_2.txt
  37. as as as as be
  38. by do he in in
  39. in in in in in
  40. is is is is is
  41. is is is is it
  42. it lo of of of
  43. of of of of of
  44. or or re to to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement