NameError Traceback (most recent call last)
Cell In[1], line 12
3 social_insurance_rates = {
4 ‘pension’: 0.08, # 养老保险个人缴费比例
5 ‘medical’: 0.02, # 医疗保险个人缴费比例
6 ‘unemployment’: 0.005 # 失业保险个人缴费比例
7 }
9 # 计算个人缴费金额
10 personal_payment = {
11 ‘pension’: base_salary * social_insurance_rates[‘pension’],
—> 12 ‘medical’: base_salary * social保険_rates[‘medical’],
13 ‘unemployment’: base_salary * social_insurance_rates[‘unemployment’]
14 }
16 # 总缴费金额
17 total_payment = sum(personal_payment.values())
NameError: name ‘social保険_rates’ is not defined