KeyError Traceback (most recent call last)
Cell In[1], line 38
36 # 计算适用税率和速算扣除数
37 tax_rate = next(rate for limit, rate in personal_income_tax_rates.items() if taxable_income <= limit)
—> 38 quick_deduction = personal_income_tax_quick_deduction[taxable_income]
40 # 计算个税
41 personal_income_tax = taxable_income * tax_rate - quick_deduction
KeyError: 14242.5