1.pip install PILLOW
2.from PIL import Image
3.from PIL import ImageTk
4.photo = Image.open(’’)
5.photo = ImageTk.PhotoImage(photo)
相关文章
- 02-24TK中遇到无法导入其他图片格式问题
2024-02-24 23:17:10
1.pip install PILLOW
2.from PIL import Image
3.from PIL import ImageTk
4.photo = Image.open(’’)
5.photo = ImageTk.PhotoImage(photo)