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