- 可以在读取文件中使用异常
for imname in list[1:]:
try:
averageim +=array(Image.open(imname))
except:
print(" imname+'....skiped!' ")
确保文件都能读取!
for imname in list[1:]:
try:
averageim +=array(Image.open(imname))
except:
print(" imname+'....skiped!' ")
确保文件都能读取!