TypeError Traceback (most recent call last)
Cell In[1], line 31
11 insurance_costs = {
12 ‘养老保险’: {
13 ‘单位’: base_salary * insurance_rates[‘养老保险’][‘单位’],
(…)
27 }
28 }
30 # 计算总扣费金额
—> 31 total_cost = sum(insurance_costs.values())
33 insurance_costs, total_cost
TypeError: unsupported operand type(s) for +: ‘int’ and ‘dict’