import easygui
# easygui 界面工具包
# 需要第三方工具包
# file 文件 ---》 setting设置 ---》 project 文件工程---》 interpreter 编辑器
# ---> + ---> 搜索easygui ---》 install 安装
# 显示文字:message 信息 box盒子
easygui.msgbox("mvp","猜拳游戏","我是按扭",image="cxk.gif")
# 显示输入框 enter 输入 box盒子
xi_huan = easygui.enterbox("你最喜欢什么?")
easygui.msgbox("巧了,我也喜欢"+xi_huan)
# 电脑显示:你好水水水
import easygui
hi = int(easygui.enterbox("你多大了?"))
if hi > 50:
easygui.msgbox("你好老爷爷")
elif hi > 30:
easygui.msgbox("你好大叔")
elif hi > 20:
easygui.msgbox("你好叔叔")
elif hi > 13:
easygui.msgbox("你好哥哥")
else:
easygui.msgbox("你好小老弟")