KeyError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 18000
13 # 计算个人和单位缴费总额
—> 14 total_personal_payment = sum(base_salary * rate[‘个人’] for rate in social_insurance_rates.values())
15 total_company_payment = sum(base_salary * rate[‘单位’] for rate in social_insurance_rates.values())
17 total_payment = total_personal_payment + total_company_payment
Cell In[1], line 14, in <genexpr>(.0)
11 base_salary = 18000
13 # 计算个人和单位缴费总额
—> 14 total_personal_payment = sum(base_salary * rate[‘个人’] for rate in social_insurance_rates.values())
15 total_company_payment = sum(base_salary * rate[‘单位’] for rate in social_insurance_rates.values())
17 total_payment = total_personal_payment + total_company_payment
KeyError: ‘个人’