四舍五入计算器,第一个python—gui程序
来源:互联网 发布:mac网速慢的解决办法 编辑:程序博客网 时间:2024/06/05 10:29
# test2.py# coding=utf-8def hello(b):c = int(b)if b - c >= 0.5: c = c + 1else:pass;return c'''while 1:b = raw_input("Enter you num:")b = float(b)hello(b)'''# coding=utf-8import easyguiimport test2choice = easygui.buttonbox("欢迎使用" ,"四舍五入计算器" ,choices=("Enter" , "Cancel"))if choice == "Enter" :num = easygui.enterbox("Enter you num :" ,"game" , default=0.0000)result = test2.hello(float(num))easygui.msgbox("the result is : %d" % result , "四舍五入计算器")
0 0
- 四舍五入计算器,第一个python—gui程序
- python核心编程-第一个GUI程序
- 第一个Android程序——计算器
- 使用PyQt来编写第一个Python GUI程序
- 使用PyQt来编写第一个Python GUI程序
- 使用PyQt来编写第一个Python GUI程序
- Python GUI 之 第一个tkinter程序,hello world
- 使用PyQt来编写第一个Python GUI程序
- 第一个android程序——贷款计算器
- C#winform第一个小程序——简易计算器
- Java简易计算器V1.0-第一个Java GUI项目
- 第一个Python程序
- 第一个Python程序
- 第一个Python程序
- 第一个python 程序
- 第一个Python程序
- 第一个python程序
- 第一个python程序
- linux 安装软件出现的各种问题汇总
- jgit比较项目不同版本间的差异及统计代码总行数
- mysql导入数据库失败#1046 - No database selected
- oracle中SQL优化的相关问题
- PowerShell中出现”禁止执行脚本“的解决方法
- 四舍五入计算器,第一个python—gui程序
- Excel 阳历转阴历
- ubuntu下的jdk安装
- 判断素数
- Oracle约束操作
- 标准C++中的string类的用法总结
- 2034 人见人爱A-B
- 二分图匹配 ( 多重匹配&&Hungarian)——Escape ( HDU 3605 )
- android自定义title出现 You cannot combine custom titles with other title features