#创建Windows窗口(GUI).py #基本的四要素: import tkinter #导入tkinter模块 root=tkinter.Tk() #创建Window窗口对象 root.title('我的第一个GUI程序') #窗口标题 root.mainloop() #显示窗口