TypeError Traceback (most recent call last)
Cell In[1], line 15
12 provident_fund_rate = 0.10 # 假设中等比例10%
14 # 计算社保个人缴费总额
—> 15 social_security_personal_payment = sum([base * rate for base, rate in social_security_rates.items()])
17 # 计算公积金个人缴费
18 provident_fund_personal_payment = base * provident_fund_rate
Cell In[1], line 15, in <listcomp>(.0)
12 provident_fund_rate = 0.10 # 假设中等比例10%
14 # 计算社保个人缴费总额
—> 15 social_security_personal_payment = sum([base * rate for base, rate in social_security_rates.items()])
17 # 计算公积金个人缴费
18 provident_fund_personal_payment = base * provident_fund_rate
TypeError: can’t multiply sequence by non-int of type ‘float’