枕头不显示图像

时间:2016-11-24 08:15:36

标签: python python-3.x python-imaging-library pillow

使用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'

0 个答案:

没有答案