NameError Traceback (most recent call last)
Cell In[1], line 48
46 break
47 else:
—> 48 tax += (limit - (tax_rates[limit-3000] if limit > 3000 else 0)) * tax_rates[limit-3000]
49 taxable_income -= limit - (tax_rates[limit-3000] if limit > 3000 else 0)
51 # 总扣税金额
NameError: name ‘tax’ is not defined