编辑:当我使用image = ImageTk.PhotoImage(resize_image)而不是file=resize_image时,画布上什么都不会显示。。Programs\Python\Python37\lib\site-packages\PIL\Image.py", line 2852, in openAttributeError__photo.name
AttributeError: 'PhotoImage' object has
我尝试在python 3.7.3中使用PIL版本6.2.1编写以下代码:但它会导致如下所示的错误消息: File "C:\Users\erica\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 3545, in __init__
print str(thumbed) paste = image.paste(thumbed,tup)Exception in Tkinter callback
Exception AttributeError: "'PhotoImage' object has no attribute'_PhotoImage__photo'&qu