TypeError Traceback (most recent call last)
Cell In[1], line 17
14 personal_income_tax_threshold = 5000
16 # 计算社保和公积金缴费总额
—> 17 social_insurance_total = sum([base * rate for base, rate in social_insurance_rates.items()])
18 housing_fund = base * housing_fund_rate
20 # 计算应纳税所得额
Cell In[1], line 17, in <listcomp>(.0)
14 personal_income_tax_threshold = 5000
16 # 计算社保和公积金缴费总额
—> 17 social_insurance_total = sum([base * rate for base, rate in social_insurance_rates.items()])
18 housing_fund = base * housing_fund_rate
20 # 计算应纳税所得额
TypeError: can’t multiply sequence by non-int of type ‘float’