TypeError Traceback (most recent call last)
Cell In[1], line 33
13 insurance_payment = {
14 “养老保险”: {
15 “企业”: base_salary * proportion[“养老保险”][“企业”],
(…)
29 }
30 }
32 # 计算总缴费金额
—> 33 total_payment = sum(insurance_payment[“养老保险”][“企业”], insurance_payment[“养老保险”][“职工”],
34 insurance_payment[“医疗保险”][“企业”], insurance_payment[“医疗保险”][“职工”],
35 insurance_payment[“失业保险”][“企业”], insurance_payment[“失业保险”][“职工”],
36 insurance_payment[“工伤保险”][“企业”])
38 insurance_payment, total_payment
TypeError: sum() takes at most 2 arguments (7 given)