【IndexError: index 1 is out of bounds for axis 0 with size 1】

python程序遇到下面的问题:

IndexError: index 1 is out of bounds for axis 0 with size 1

【IndexError: index 1 is out of bounds for axis 0 with size 1】_第1张图片

【IndexError: index 1 is out of bounds for axis 0 with size 1】_第2张图片

解决办法:(不要像matlab省去一维数组前面的0)

【IndexError: index 1 is out of bounds for axis 0 with size 1】_第3张图片

你可能感兴趣的:(python,IndexError,index,1,i)