TypeError Traceback (most recent call last)
Cell In[1], line 17
1 # 新疆社保基数23400元,公司和个人承担比例
2 # 养老保险:公司缴16%,个人缴8%
3 # 医疗保险:公司缴8%,个人缴2%
(…)
7
8 # 计算公司承担总额
9 company_payment = {
10 “养老保险”: 0.16,
11 “医疗保险”: 0.08,
(…)
14 “生育保险”: 0.005
15 }
—> 17 total_company_payment = sum([base_salary * rate for base_salary, rate in company_payment.items()])
18 total_company_payment
Cell In[1], line 17, in <listcomp>(.0)
1 # 新疆社保基数23400元,公司和个人承担比例
2 # 养老保险:公司缴16%,个人缴8%
3 # 医疗保险:公司缴8%,个人缴2%
(…)
7
8 # 计算公司承担总额
9 company_payment = {
10 “养老保险”: 0.16,
11 “医疗保险”: 0.08,
(…)
14 “生育保险”: 0.005
15 }
—> 17 total_company_payment = sum([base_salary * rate for base_salary, rate in company_payment.items()])
18 total_company_payment
TypeError: can’t multiply sequence by non-int of type ‘float’