List 我应该如何处理该错误:“quot;列表索引必须是整数;

List 我应该如何处理该错误:“quot;列表索引必须是整数;,list,integer,slice,indices,List,Integer,Slice,Indices,我尝试了一些解决上述问题的建议,但没有解决: ...... if (patients_2['Temperature'] > 102 ): patients_2.update({'diagnosis':'thermopliksia'}) print("Οι εν λόγω ασθενείς έχουν: ", "thermopliksia") 我该怎么办? 谢谢 ----> 1 if (patients_2['Temperat

我尝试了一些解决上述问题的建议,但没有解决:

......  
if (patients_2['Temperature'] > 102   ):
    patients_2.update({'diagnosis':'thermopliksia'})

print("Οι εν λόγω ασθενείς έχουν: ", "thermopliksia")
我该怎么办? 谢谢

----> 1 if (patients_2['Temperature'] > 102   ):
TypeError: list indices must be integers or slices, not str