TypeError: list indices must be integers or slices, not tuple

Posted 时光-ing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: list indices must be integers or slices, not tuple相关的知识,希望对你有一定的参考价值。

报错: TypeError: list indices must be integers or slices, not tuple
解决: 直接使用 np.array() 处理数据即可解决问题。
参考文章: python中list与array类型的查看与转换

以上是关于TypeError: list indices must be integers or slices, not tuple的主要内容,如果未能解决你的问题,请参考以下文章