TypeError Traceback (most recent call last)
Cell In[1], line 23
21 # 输入基数
22 base_salary = 12700
—> 23 monthly_deduction = calculate_monthly_deduction(base_salary)
24 monthly_deduction
Cell In[1], line 15, in calculate_monthly_deduction(base_salary)
13 total_deduction = 0
14 for insurance, rates in social_insurance_rates.items():
—> 15 if “单位” in rates:
16 unit_payment = base_salary * rates[“单位”]
17 personal_payment = base_salary * rates[“个人”]
TypeError: argument of type ‘float’ is not iterable