当我们把from tkinter import *语句放在from PIL import Image语句 之后时,会发生AttributeError: type object 'Image' has no attribute 'open'的错误
而我们只需把from tkinter import * 语句放在from PIL import Image 语句之前,即可不报错
我也不知道是什么原因,很神奇
当我们把from tkinter import *语句放在from PIL import Image语句 之后时,会发生AttributeError: type object 'Image' has no attribute 'open'的错误
而我们只需把from tkinter import * 语句放在from PIL import Image 语句之前,即可不报错
我也不知道是什么原因,很神奇