ValueError Traceback (most recent call last)
Cell In[1], line 32
29 taxable_income = social_insurance_base - personal_income_tax_threshold
31 # 确定适用税率
—> 32 tax_rate, quick_deduction = next((rate, deduction) for income, rate, deduction in tax_brackets if taxable_income <= income)
34 # 计算个人所得税
35 personal_income_tax = taxable_income * tax_rate - quick_deduction
Cell In[1], line 32, in <genexpr>(.0)
29 taxable_income = social_insurance_base - personal_income_tax_threshold
31 # 确定适用税率
—> 32 tax_rate, quick_deduction = next((rate, deduction) for income, rate, deduction in tax_brackets if taxable_income <= income)
34 # 计算个人所得税
35 personal_income_tax = taxable_income * tax_rate - quick_deduction
ValueError: too many values to unpack (expected 3)