PIL /枕头未显示图像

时间:2019-12-29 17:22:06

标签: python image python-imaging-library

我目前正在尝试使用Google Colab使用PIL创建简单图片。 但是,没有图片输出

版本为5.3.0

!pip install -U Pillow==5.3.0
from PIL import Image
print(PIL.PILLOW_VERSION)

im= Image.new("RGB", (128, 128), "#FF0000")
im.show()

output

编辑:将“ im.show()”更改为“ im”就可以了。现在可以使用

0 个答案:

没有答案