TypeError Traceback (most recent call last)
Cell In[1], line 36
14 monthly_social_security_payment = {
15 ‘养老保险’: {
16 ‘单位’: base_salary * social_security_rates[‘养老保险’][‘单位’],
(…)
32 }
33 }
35 # 计算总费用
—> 36 total_payment = sum(monthly_social_security_payment.values())
38 monthly_social_security_payment, total_payment
TypeError: unsupported operand type(s) for +: ‘int’ and ‘dict’