TypeError Traceback (most recent call last)
Cell In[1], line 44
16 insurance_cost = {
17 “养老保险”: {
18 “个人”: base_salary * proportion[“养老保险”][“个人”],
(…)
40 }
41 }
43 # 计算总费用
—> 44 total_cost = sum(insurance_cost[“养老保险”][“个人”],
45 insurance_cost[“医疗保险”][“个人”],
46 insurance_cost[“大病医疗保险”][“个人”],
47 insurance_cost[“失业保险”][“个人”],
48 insurance_cost[“工伤保险”][“个人”],
49 insurance_cost[“公积金”][“个人”])
51 total_cost
TypeError: sum() takes at most 2 arguments (6 given)