TypeError Traceback (most recent call last)
Cell In[1], line 11
3 social_insurance_rates = {
4 ‘养老保险’: 0.08,
5 ‘医疗保险’: 0.02,
6 ‘失业保险’: 0.003,
7 ‘工伤保险’: 0.0 # 个人不缴费
8 }
10 # 计算个人社保缴费总额
—> 11 total_personal_payment = sum([base_salary * rate for rate, rate_name in social_insurance_rates.items() if rate_name != ‘工伤保险’])
13 total_personal_payment
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’