import tkinter.simpledialog as dl import tkinter.messagebox as mb def gessNum(): Num=100 mb.showinfo("对话框","不知道是啥") guess = dl.askinteger("Number", "What's your guess?") print("你猜的数字是:",guess) gessNum()
python的GUI
最新推荐文章于 2023-09-14 16:14:05 发布
import tkinter.simpledialog as dl import tkinter.messagebox as mb def gessNum(): Num=100 mb.showinfo("对话框","不知道是啥") guess = dl.askinteger("Number", "What's your guess?") print("你猜的数字是:",guess) gessNum()