我有两台安装了scipy0.12和PIL的不同机器。在一台机器上,当我尝试读取.png文件时,它返回一个大小为(wxhx3)的整数数组:In[2]:fromscipy.ndimage.ioimportimreadIn[3]:out=imread(png_file)In[4]:out.shapeOut[4]:(750,1000,4)在另一台机器上,使用相同的图像文件,这将返回一个包装在数组中的PIL.PngImagePlugin.PngImageFile对象In[2]:fromscipy.ndimage.ioimportimreadIn[3]:out=imread(png_file)In