TypeError Traceback (most recent call last)
Cell In[1], line 17
14 provident_fund_rate = 0.12 # 假设按最高比例12%计算
16 # 计算社保和公积金的个人缴费金额
—> 17 social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
18 provident_fund_payment = 14000 * provident_fund_rate
20 social_security_payment, provident_fund_payment
Cell In[1], line 17, in <listcomp>(.0)
14 provident_fund_rate = 0.12 # 假设按最高比例12%计算
16 # 计算社保和公积金的个人缴费金额
—> 17 social_security_payment = sum([base * rate for base, rate in social_security_rates.items()])
18 provident_fund_payment = 14000 * provident_fund_rate
20 social_security_payment, provident_fund_payment
TypeError: can’t multiply sequence by non-int of type ‘float’