TypeError Traceback (most recent call last) Cell In[1], line 17 15 for insurance, rates in insurance_rates.items(): 16 if insurance == ‘injury’: # 工伤保险单独计算 —> 17 total_company_payment += social_security_base * rates[‘company’] 18 else: 19 total_company_payment += social_security_base * rates[‘company’]
TypeError: ‘float’ object is not subscriptable