AttributeError Traceback (most recent call last)
Cell In[1], line 49
47 break
48 else:
—> 49 tax += (limit - (tax_rates.keys()[tax_rates.keys().index(limit) - 1])) * tax_rates[tax_rates.keys()[tax_rates.keys().index(limit) - 1]] - quick_deduction[tax_rates.keys()[tax_rates.keys().index(limit) - 1]]
50 taxable_income -= limit
52 # 总扣税金额
AttributeError: ‘dict_keys’ object has no attribute ‘index’