TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 19900
13 # 计算个人扣款总额
—> 14 total_deduction = sum(rate * base_salary for rate, base_salary in social_insurance_rates.items())
16 total_deduction
Cell In[1], line 14, in <genexpr>(.0)
11 base_salary = 19900
13 # 计算个人扣款总额
—> 14 total_deduction = sum(rate * base_salary for rate, base_salary in social_insurance_rates.items())
16 total_deduction
TypeError: can’t multiply sequence by non-int of type ‘float’