我在网上搜索得很高,但仍无法找到解决上述问题的方法.有没有人知道为什么以及如果可以这样做?
psw="dg"
ZipFile.extractall("data.zip", None, psw)
Run Code Online (Sandbox Code Playgroud)
我得到的错误:
TypeError: unbound method extractall() must be called
with ZipFile instance as first argument (got str instance instead)
Run Code Online (Sandbox Code Playgroud)