In [2]:
import numpy as np
m1=np.arange(1,51).reshape(5,10)
In [3]:
m1
Out[3]:
In [13]:
m1[2:,:3]
Out[13]:
In [19]:
m1[0:3,0:3
]
Out[19]:
In [3]:
m1[1,1]
Out[3]:
In [4]:
m1
Out[4]:
In [5]:
m1[1][1]
Out[5]:
In [6]:
m1[1,1]
Out[6]:
In [7]:
m1[1]
Out[7]:
In [10]:
m1[:,0]
Out[10]:
In [11]:
m1[:]
Out[11]:
In [13]:
m1[0:3]
Out[13]:
In [14]:
m1[:,0:3]
Out[14]:
In [17]:
m1[1:2,0:3]
Out[17]:
In [18]:
m1[2:4,4:7]
Out[18]:
No comments:
Post a Comment