📜  无法识别图像文件中的数据 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:44.775000             🧑  作者: Mango

代码示例1
# PIL solution
from tkinter import *
from PIL import ImageTk, Image

tkFenster = Tk()

canv = Canvas(master=tkFenster)
canv.place(x=0, y=0, width=750, height=531)

img = ImageTk.PhotoImage(Image.open("mond.gif"))  # <-- PIL
canv.create_image(0, 0, image=img, anchor='nw')

mainloop()