使用Pillow 3.4.2 for python 3.5我试图使用以下代码显示Lenna图像:
from PIL import Image
filename = 'C:/Users/Thomas/AppData/Local/Programs/Python/Lenna.png'
pic = Image.open(filename)
pic.show()
但是在运行代码时出现以下错误:
builtins.AttributeError:模块'PIL._imaging'没有属性'fill'