KeyError Traceback (most recent call last)
Cell In[1], line 13
10 base_salary = 14600
12 # 计算个人社保缴费总额
—> 13 total_social_insurance = sum([
14 base_salary * rate[“个人”] for rate in rates.values()
15 ])
17 # 计算个税(扣除社保后)
18 # 假设专项扣除额为5000元
19 deduction = 5000
Cell In[1], line 14, in <listcomp>(.0)
10 base_salary = 14600
12 # 计算个人社保缴费总额
13 total_social_insurance = sum([
—> 14 base_salary * rate[“个人”] for rate in rates.values()
15 ])
17 # 计算个税(扣除社保后)
18 # 假设专项扣除额为5000元
19 deduction = 5000
KeyError: ‘个人’