python界面添加图片在Python的GUI界面中添加图片,可以使用Tkinter模块中的PhotoImage类来创建图像对象,然后将其显示出来。from tkinter import *root = Tk()img = PhotoImage(file="example.gif