TypeError Traceback (most recent call last)
Cell In[1], line 29
12 insurance_costs = {
13 “养老保险”: {
14 “单位”: base_salary * payment_rates[“养老保险”][“单位”],
(…)
24 }
25 }
27 # 计算总费用
28 total_costs = {
—> 29 “单位”: sum(insurance_costs[“养老保险”][“单位”], insurance_costs[“医疗保险”][“单位”], insurance_costs[“失业保险”][“单位”]),
30 “个人”: sum(insurance_costs[“养老保险”][“个人”], insurance_costs[“医疗保险”][“个人”], insurance_costs[“失业保险”][“个人”])
31 }
33 insurance_costs, total_costs
TypeError: sum() takes at most 2 arguments (3 given)