TypeError Traceback (most recent call last)
Cell In[1], line 40
37 tax_rate = next(rate for limit, (rate, deduction) in tax_rates.items() if taxable_income <= limit)
39 # 计算个人所得税
—> 40 personal_income_tax = taxable_income * tax_rate[0] - tax_rate[1]
42 # 总扣税金额
43 total_tax = social_security_payment + personal_income_tax
TypeError: ‘int’ object is not subscriptable