代码很简单只有几行 #创建Window窗口 (GUT) #基本的四要素: import tkinter root=tkinter.Tk() root.title('我的第一个GU1程序') root.mainloop () 运行如下: