在处理图片数据的时候,Image.open()报错 image file is truncated (7 bytes not processed) 解决办法: 加上两行代码 from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True