python报错:index 1 is out of bounds for axis 0 with size 1

这里写自定义目录标题

    • 解决方法

python报错:index 1 is out of bounds for axis 0 with size 1_第1张图片
报错:index 1 is out of bounds for axis 0 with size 1
**

解决方法

**
不能像matlab一样省略一维数组前面的0(matlab默认应为1,因为matlab数组默认从1开始)
应改成
python报错:index 1 is out of bounds for axis 0 with size 1_第2张图片
报错消失

你可能感兴趣的:(报错)