TypeError Traceback (most recent call last)
Cell In[1], line 21
18 total_cost[insurance] = {“单位”: unit_cost, “个人”: personal_cost}
20 # 计算总费用
—> 21 total_monthly_cost = sum([unit_cost + personal_cost for unit_cost, personal_cost in total_cost.values()])
23 total_monthly_cost
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’