TypeError Traceback (most recent call last)
Cell In[1], line 16
13 tax_threshold = 5000
15 # 计算五险一金
—> 16 total_social_insurance = sum([base * rate for base, rate in social_insurance_rates.items()])
18 # 计算应纳税所得额
19 taxable_income = 13500 - tax_threshold - total_social_insurance
Cell In[1], line 16, in <listcomp>(.0)
13 tax_threshold = 5000
15 # 计算五险一金
—> 16 total_social_insurance = sum([base * rate for base, rate in social_insurance_rates.items()])
18 # 计算应纳税所得额
19 taxable_income = 13500 - tax_threshold - total_social_insurance
TypeError: can’t multiply sequence by non-int of type ‘float’