KeyError Traceback (most recent call last)
Cell In[1], line 54
51 tax_rate = 0.45
53 # 计算个人所得税
—> 54 tax_amount = taxable_income * tax_rate - tax_rates[str(tax_rate * 100)]
56 # 计算税后收入
57 net_income = social_insurance_base - total_social_insurance - tax_amount
KeyError: ‘3.0’