TypeError Traceback (most recent call last)
Cell In[1], line 39
36 tax_rate = next(rate for limit, (rate, deduction) in tax_rate_table.items() if taxable_income <= limit)
38 # 计算个税
—> 39 income_tax = taxable_income * tax_rate[0] - tax_rate[1]
41 # 计算税后收入
42 net_income = social_security_base - sum(social_security_deduction.values()) - income_tax
TypeError: ‘float’ object is not subscriptable