TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 8800
13 # 计算个人缴费总额
—> 14 total_payment = sum([base_salary * rate for rate, name in payment_rates.items() if name != “工伤保险” and name != “生育保险”])
16 total_payment
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’