TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 14800
13 # 计算个人缴费总额
—> 14 total_payment = sum([base_salary * rate for rate, name in social_security_rates.items() if rate > 0])
16 total_payment
Cell In[1], line 14, in <listcomp>(.0)
11 base_salary = 14800
13 # 计算个人缴费总额
—> 14 total_payment = sum([base_salary * rate for rate, name in social_security_rates.items() if rate > 0])
16 total_payment
TypeError: ‘>’ not supported between instances of ‘str’ and ‘int’