1、首先导入tkinter,import Tkinter
3、循环显示界面win.mainloop()
5、导入tkinter中的message消息盒子
7、定义一个函数,当按钮按下时会弹出一个消息窗口
9、喜欢就点个赞