#!/usr/bin/env python3
from sys import argv
script, salary = argv
try:
salary = float(salary)
if salary <= 3500:
tax = 0.0
else:
should = salary - 3500
if should <= 1500:
tax1 = 0.03
suan = 0
if should <= 4500:
tax1 = 0.10
suan = 105
elif should <= 9000:
tax1 = 0.2
suan = 555
elif should <= 35000:
tax1 = 0.25
suan = 1005
elif should <= 55000:
tax1 = 0.3
suan = 2755
elif should <= 80000:
tax1 = 0.35
suan = 5505
else:
tax1 = 0.45
suan = 13505
tax = should * tax1 - suan
print("%.2f" % tax)
except ValueError:
print("Parameter Error")
copy
学习时间 113分钟
操作时间 33分钟
按键次数 1757次
实验次数 2次
报告字数 832字
是否完成 完成