对于:
x= np.arange(0,56).reshape((7,8))
希望索引第0列以及第4到8列(不含8),我写的代码如下:
x[:,[0,4:8]]
报错:SyntaxError: invalid syntax
请问如何使用正确的语法呢?
谢谢!
相似问题