TypeError: list indices must be integers or slices, not str
“TypeError: list indices must be integers or slices, not str”有关报错解决方案
在学习python中遇到了提示“TypeError: list indices must be integers or slices, not str”报错。查询资料后得到了解决
TypeError: list indices must be integers or slices, not str

这里的提示意思是list的索引必须是整数或者片,而不是str
通过调试我的代码发现,我这里的datas中的数据是如下图所示
本文来自博客园,作者:竹石2020,转载请注明原文链接:https://www.cnblogs.com/ch2020/articles/14422337.html
浙公网安备 33010602011771号