我已经在stackoverflow上到处寻找了一段时间,想找到一个答案,但没有任何运气!我在mac上使用tkinter和PIL显示图像时遇到了问题。他们只是在运行的应用程序中找不到图像。这是我的Python课程的最后一部分,我真的需要完成这门课程。这是我得到的错误消息。"/Users/andrej/Documents/untitled", line 19, in <mo
我刚开始学习用Python构建的Tkinter模块。我试着用枕头构建一个简单的图像查看器GUI。这里有一个属性错误。AttributeError: type object 'Image' has no attribute 'open'from PIL import ImageTk,Imagebase = Tk()base.iconbitmap(&q