How to zip a folder and file in python?

后端 未结 3 1792
情深已故
情深已故 2021-01-12 05:04

I\'ve got a folder called: \'files\' which contains lots of jpg photographs. I\'ve also got a file called \'temp.kml\'. I want to create a KMZ file (basically a zip file) wh

3条回答
  •  逝去的感伤
    2021-01-12 05:24

    Actually, I think this is the best answer so far here You don't have to loop through anything. You will use shutil and it is a python in-built library.

提交回复
热议问题