2024-04-25 05:12:28 发布
网友
def show(): file = raw_input("What is the name of the image file? ") picture = Image(file) width, height = picture.size() pix = picture.getPixels()
我试图编写一个代码来显示此图像,但此代码不提供图像。 如何更改代码以显示此图像?
from PIL import Image image = Image.open('File.jpg') image.show()
别忘了包括
import Image
为了显示它,请使用:
Image.open('pathToFile').show()
别忘了包括
为了显示它,请使用:
相关问题 更多 >
编程相关推荐