python应用-工资计算
2023-09-14 08:57:35 时间
""" 工资计算 Author:罗万财 Date:2017-6-8 """ salary=float(input('请输入工资:')) insurance=float(input('五险一金:')) diff=salary-insurance-3500 if diff<=0: tax=0 deduction=0 elif diff<=1500: tax=0.03 deduction=0 elif diff<=4500: tax=0.1 deduction=105 elif diff<=9000: tax=0.2 deduction=555 elif diff<=35000: tax=0.25 deduction=1005 elif diff<=55000: deduction=2755 tax=0.33 elif diff<=80000: tax=0.35 deduction=5505 else: tax=0.45 deduction=13505 personal=diff*tax-deduction print('个人所得税:¥%.2f'%(personal)) print('实际工资:¥%.2f'%(salary-insurance-personal)) 结果: 请输入工资:25888 五险一金:555 个人所得税:¥4453.25 实际工资:¥20879.75
相关文章
- python 基尼系数_Python计算
- pycharm打包python项目_Python怎么打包
- Python&R语言-python和r相遇
- python海龟绘图画圆_Python启蒙之海龟作图「建议收藏」
- python setattr函数_Python内置函数(53)——setattr
- Python 技巧篇-pip卸载python库实例演示,查看pip命令大全方法[通俗易懂]
- 【说站】python逻辑运算符and的使用
- Python(一)对 meta class 的理解
- 经纬度距离计算 python_Python已知两坐标求距离
- Python安装scrapy库
- python随机函数的应用
- python制作自动交易程序_Python如何实现自动化交易
- 数据结构与算法Python_数据结构与算法python语言实现
- 如何利用python读excel数据_python在excel应用实例
- Python基础:可视化理解嵌套的列表解析
- Django框架开发001期 Python+Django开发教程,开启你的第一个django网站应用
- Python办公自动化之 openpyxl 操作 Excel
- Python基础(十五):推导式的讲解
- python(五)
- Python如何获取页面上某个元素指定区域的html源码?
- 【开发环境】Mac 中删除 Python ( 删除 Python 框架 | 删除 Python 应用程序 | 删除 Python 链接 )
- Python fnmatch模块:用于文件名的匹配
- Python:Python学习总结详解编程语言
- python获取图片元数据的代码详解编程语言
- Python for循环内部实现的一个sample详解编程语言
- Python输出函数print()总结(python print())详解编程语言
- 下的应用玩转Python:Linux下的Python应用之旅(python在linux)
- Python在MSSQL中的应用实践(python与mssql)
- Python实现的生成自我描述脚本分享(很有意思的程序)