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