from tkinter import *
import tkinter.simpledialog as dl
import tkinter.messagebox as mb
#主函数框
root=Tk()
#标签
w=Label(root,text="Label Tittle")
#自适应
w.pack()
mb.showerror("wellcome", "wellcome message")
#用户输入一个数字,赋给guess
guess =dl.askfloat("number", "enter a number")
output="this is output message"
mb.showinfo("outpue", output)