我想在python.I中打开图像。我一直使用PIL打开图像,但它抛出'module‘错误不可调用
import PIL
from PIL import Image
image=Image.open(r'C:\Users\intel\Downloads\11fcf12ff3cf97e8e7a88f3e485255e6.jpg')
print(image)
display(image) #the error is thrown here发布于 2020-09-01 00:13:12
是否确实要使用display?你想完成什么?也许会显示..。在PIL库中有一个像show()这样的方法,所以在您的例子中应该是image.show()
https://stackoverflow.com/questions/63674326
复制相似问题