[i, j] [i][j] numpy. , .
, :
>>> import numpy as np
>>> arr = np.arange(16).reshape(4, 4)
>>> arr
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11],
[12, 13, 14, 15]])
[:], , [1, :] [:, 1], , (). , : , , , ::
>>> arr[:]
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11],
[12, 13, 14, 15]])
>>> arr[:, 1]
array([ 1, 5, 9, 13])
>>> arr[:][1]
array([4, 5, 6, 7])
, [1] [1, ...] (... - Ellipsis), 2D [1, :].
, ( ):
>>> arr[1, :] # get the second row
array([4, 5, 6, 7])
>>> arr[1][:] # get the second row, then get a new view of that row
array([4, 5, 6, 7])