KeyError Traceback (most recent call last)
Cell In[1], line 18
15 total_company_payment = 0
17 for insurance, rates in insurance_rates.items():
—> 18 personal_payment[insurance] = base_salary * rates[“个人”]
19 company_payment[insurance] = base_salary * rates[“单位”]
20 total_personal_payment += personal_payment[insurance]
KeyError: ‘个人’