TypeError Traceback (most recent call last)
Cell In[1], line 15
6 social_security_rates = {
7 “养老保险”: 0.08, # 个人缴费比例
8 “医疗保险”: 0.02, # 个人缴费比例
(…)
11 “生育保险”: 0.007 # 个人缴费比例
12 }
14 # 计算社保缴费总额
—> 15 social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
17 # 计算个税
18 # 全月应纳税所得额 = 税前收入 - 起征点 - 社保缴费
19 taxable_income = 11400 - tax_threshold - social_security_payment
Cell In[1], line 15, in <listcomp>(.0)
6 social_security_rates = {
7 “养老保险”: 0.08, # 个人缴费比例
8 “医疗保险”: 0.02, # 个人缴费比例
(…)
11 “生育保险”: 0.007 # 个人缴费比例
12 }
14 # 计算社保缴费总额
—> 15 social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
17 # 计算个税
18 # 全月应纳税所得额 = 税前收入 - 起征点 - 社保缴费
19 taxable_income = 11400 - tax_threshold - social_security_payment
TypeError: can’t multiply sequence by non-int of type ‘float’