TypeError Traceback (most recent call last)
Cell In[1], line 14
11 base_salary = 8300
13 # 计算个人每月社保扣费总额
—> 14 total_deduction = sum(base_salary * proportion[insurance][“个人”] for insurance in proportion)
15 total_deduction
Cell In[1], line 14, in <genexpr>(.0)
11 base_salary = 8300
13 # 计算个人每月社保扣费总额
—> 14 total_deduction = sum(base_salary * proportion[insurance][“个人”] for insurance in proportion)
15 total_deduction
TypeError: ‘float’ object is not subscriptable