TypeError Traceback (most recent call last)
Cell In[1], line 25
15 quick_deduction = {
16 3000: 0,
17 12000: 300,
(…)
21 80000: 5400
22 }
24 # 计算社保和公积金
—> 25 social_insurance = sum(salary * rate for rate, salary in social_insurance_rates.items())
26 housing_fund = salary * housing_fund_rate
28 # 计算应纳税所得额
Cell In[1], line 25, in <genexpr>(.0)
15 quick_deduction = {
16 3000: 0,
17 12000: 300,
(…)
21 80000: 5400
22 }
24 # 计算社保和公积金
—> 25 social_insurance = sum(salary * rate for rate, salary in social_insurance_rates.items())
26 housing_fund = salary * housing_fund_rate
28 # 计算应纳税所得额
TypeError: can’t multiply sequence by non-int of type ‘float’