sample_seq = data[0,:] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
时间: 2024-05-02 09:18:48 浏览: 196
This error message suggests that the variable "data" is only a one-dimensional array, but the code is trying to index it with two indices.
To fix this error, you should only use one index to access the elements in the array. For example, if you want to access the first element in the array, you can use:
```
sample_seq = data[0]
```
This will assign the first element of the array to the variable "sample_seq".
阅读全文