ValueError Traceback (most recent call last)
Cell In[1], line 23
20 payment_amounts[(insurance, payer)] = social_security_base * rate
22 # 计算总缴费金额
—> 23 total_personal_payment = sum(amount for insurance, payer, amount in payment_amounts.items() if payer == “个人”)
24 total_company_payment = sum(amount for insurance, payer, amount in payment_amounts.items() if payer == “单位”)
26 total_payment = total_personal_payment + total_company_payment
Cell In[1], line 23, in <genexpr>(.0)
20 payment_amounts[(insurance, payer)] = social_security_base * rate
22 # 计算总缴费金额
—> 23 total_personal_payment = sum(amount for insurance, payer, amount in payment_amounts.items() if payer == “个人”)
24 total_company_payment = sum(amount for insurance, payer, amount in payment_amounts.items() if payer == “单位”)
26 total_payment = total_personal_payment + total_company_payment
ValueError: not enough values to unpack (expected 3, got 2)