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