TypeError: list indices must be integers or slices, not str”有关报错解决方案

 

 

 

 

这里的提示意思是list的索引必须是整数或者片,而不是str,所以需要加一个for循环,就不会报错了

 

posted @ 2021-06-24 15:45  请给我三分糖  阅读(6751)  评论(0)    收藏  举报