sample_seq = data[0,:] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
时间: 2024-05-02 10:18:48 浏览: 195
ping 外网报错:比如ping百度 From 192.168.0.56 (192.168.0.56) icmp_seq=3 Time to live exceeded
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".
阅读全文