import zipfile
for i in range(1,2000):
try:
filezip = zipfile.ZipFile(r'C:\Users\gil\Desktop\New folder\archives\unzipme.'+str(i))
infolist = filezip.comment
print (infolist)
except:
print(i)
某些文件引发异常-zipfile.BadZipFile:文件不是zip文件 但它们都是zip文件