from tkinter import *
from PIL import ImageTk,Image
app=Tk()
canvas=tk.Canvas(app,height=700,width=800)
canvas.pack()
im = Image.open('download.png')
ph = ImageTk.PhotoImage(im)
label1 = Label(app, image=ph)
label1.image=ph
app.mainloop()
我似乎收到一个 TclError 说 pyimage 不存在,谁能告诉我为什么我尝试使用顶层然后没有错误但仍然没有图像,我也尝试使用 gif 文件而不使用 PIL 仍然没有用