TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 15000
13 # 计算个人社保扣款金额
—> 14 personal_deduction = sum(rate * base_salary for rate, salary in social_security_rates.items() if salary > 0)
15 personal_deduction
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’