路径:F:\Anaconda3\Lib\site-packages\zipfile36.py
具体代码如下:
#修改代码
if flags & 0x800:
# UTF-8 file names extension
filename = filename.decode('utf-8')
else:
# Historical ZIP filename encoding
filename = filename.decode('cp437')
#修改
filename = filename.encode("cp437").decode('gbk')
后面一处同样如此修改
if zinfo.flag_bits & 0x800:
# UTF-8 filename
fname_str = fname.decode("utf-8")
else:
fname_str = fname.decode("cp437")
#修改
fname_str = fname_str.encode("cp437").decode('gbk')