TypeError Traceback (most recent call last)
Cell In[1], line 14
11 social_security_base = 23500
13 # 计算公司总承担金额
—> 14 total_company_payment = sum(rate * social_security_base for rate, base in payment_rates.items() if rate > 0)
16 total_company_payment
Cell In[1], line 14, in <genexpr>(.0)
11 social_security_base = 23500
13 # 计算公司总承担金额
—> 14 total_company_payment = sum(rate * social_security_base for rate, base in payment_rates.items() if rate > 0)
16 total_company_payment
TypeError: ‘>’ not supported between instances of ‘str’ and ‘int’