easy_Gui模块游戏
2020-02-16 23:26
363 查看
import easygui as g
import sys
while 1:
g.msgbox(“嗨,欢迎进入第一个界面的小游戏~~”)
msg=“请问你想学到什么小知识呢”
title=“小游戏互动”
choices=[“棋牌室”,“编程”,“网络安全”,“python”]
choice=g.choicebox(msg,title,choices)
#note that we convert choice to string ,in case
#the user cancelled the choice,and we got none
g.msgbox(“你的选择是:”+str(choice),“结果”)
msg=“你希望重新开始小游戏吗”
title=“请选择”
if g.ccbox(msg,title):
pass
else:
sys.exit(0)
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- StringBuilder(字符串拼接类)
- stack and queue
- Subsequence(POJ 3061)
- [Codeforces Round #221 (Div. 1)][D. Tree and Queries]
- [Educational Round 13][Codeforces 678F. Lena and Queries]
- AJAX技术中XMLHttpRequest对象学习笔记
- ValueError:Tensor conversion requested dtype float32 for Tensor with dtype float64.
- make network request in mobx[failed version]
- ENQUEUE
- UGUI不规则按钮的实现方式
- pandas读取并写入excel过程当中出现ValueError: source code string cannot contain null bytes
- @GeneratedValue和@GenericGenerator(转)
- 请求(Request)的参数(Parameter)里包含特殊字符(#等)的正确处理方式
- 【天赢金创】Puppet Hacking Guide —— Puppet 的启动:子命令
- unique &unique_copy
- C# Win 4000 form使用线程,委托定时更新界面UI控件,解决界面卡顿问题
- SQL Server 插入语句 执行时报错:列名无效 解决 --- value值用 “单引号”
- UUID自动生成
- hdu_5288_OO’s Sequence
- 使用 XQuery 聚合 RSS 和 Atom 信息