import tkinter.messagebox #这个是消息框,对话框的关键 root = tkinter.Tk() root.withdraw() a=tkinter.messagebox.showinfo('提示','人生苦短') print(a)
运行结果:
import tkinter.messagebox #这个是消息框,对话框的关键 root = tkinter.Tk() root.withdraw() a=tkinter.messagebox.showinfo('提示','人生苦短') print(a)
运行结果:
转载于:https://www.cnblogs.com/yibeimingyue/p/10114287.html