发布时间:2019-08-28 09:07:10编辑:auto阅读(2044)
GUI工具包:EasyGui
import easygui as g
import sys
while 1:
g.msgbox("欢迎来到一个神奇的世界")
msg = "请问你想得到什么?"
title = "请选择"
choices = ["金钱", "时间", "生命", "未来"]
choice = g.choicebox(msg, title, choices)
g.msgbox("你的选择是:" + str(choice),"结果")
msg = "请问你想重新选择吗?"
title = "请选择"
if g.ccbox(msg, title):
pass
else:
sys.exit(0)
上一篇: Python(2)
下一篇: python 学习笔记第二章:安装pyt
51568
51145
41664
38421
32907
29881
28601
23562
23492
21841
1991°
2702°
2265°
2188°
2639°
2207°
2958°
4885°
4722°
3358°