TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 12800
13 # 计算个人需缴纳的社保金额
—> 14 total_personal_payment = sum(rate * base_salary for rate, name in social_security_rates.items() if rate > 0)
15 total_personal_payment
Cell In[1], line 14, in <genexpr>(.0)
11 base_salary = 12800
13 # 计算个人需缴纳的社保金额
—> 14 total_personal_payment = sum(rate * base_salary for rate, name in social_security_rates.items() if rate > 0)
15 total_personal_payment
TypeError: ‘>’ not supported between instances of ‘str’ and ‘int’