没有合适的资源?快使用搜索试试~ 我知道了~
导入easgui: import easygui as g 1.integerbox() 函数 integerbox(msg=’’, title=’ ‘, default=None, lowerbound=0, upperbound=99, image=None, root=None) 不设置任何参数: g.integerbox() 默认输入0~99中的一个整数,我们可以修改范围: msg = '请输入您的幸运数字(0~9):' title = '幸运测评' image = '烟花.gif' g.integerbox(msg, title, lowerbound=0, upperboun
资源推荐
资源详情
资源评论
Python—easygui之三种输入类函数之三种输入类函数
导入导入easgui::
import easygui as g
1.integerbox() 函数函数
integerbox(msg=’’, title=’ ‘, default=None, lowerbound=0, upperbound=99, image=None, root=None)
不设置任何参数:
g.integerbox()
默认输入0~99中的一个整数,我们可以修改范围:
msg = '请输入您的幸运数字(0~9):'
title = '幸运测评'
image = '烟花.gif'
g.integerbox(msg, title, lowerbound=0, upperbound=9, image=image)
可以看到输出结果中的输入栏有一个提示符,可以在此输入数字,否则会提示错误:
资源评论
weixin_38691641
- 粉丝: 5
- 资源: 929
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功