def unzip(zipPath, dstPath):
with zipfile.ZipFile(zipPath, "r") as z:
z.extractall(dstPath)
我正在使用上面的代码解压缩档案。当我使用'7-zip'工具解压缩时,它会在一个阶段暂停并询问"Destination folder already contains processed file. Would you like to replace it with existing file ?"
在GUI上,我给出“是的全部”
由于这个原因,我得到WindowsError: [Error 3] The system cannot find the path specified:
例外。
但如何解决上述问题呢?
我在Windows机器上使用python。