1.pip install PILLOW
2.from PIL import Image
3.from PIL import ImageTk
4.photo = Image.open(’’)
5.photo = ImageTk.PhotoImage(photo)
TK中遇到无法导入其他图片格式问题
最新推荐文章于 2021-04-28 16:13:23 发布
1.pip install PILLOW
2.from PIL import Image
3.from PIL import ImageTk
4.photo = Image.open(’’)
5.photo = ImageTk.PhotoImage(photo)