TypeError Traceback (most recent call last)
Cell In[1], line 11
3 social_insurance_rates = {
4 “养老保险”: 0.08, # 个人缴费比例
5 “失业保险”: 0.004, # 个人缴费比例
6 “工伤保险”: 0, # 个人不缴费
7 “医疗保险”: 0.02, # 个人缴费比例
8 }
10 # 计算个人扣款金额
—> 11 total_deduction = sum([base_salary * rate for rate, rate_value in social_insurance_rates.items() if rate_value > 0])
12 total_deduction
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’