于获取单个轴向上的选区：</p>
<pre><code>In [70]: arr.take(inds)
Out[70]: array([700, 100, 200, 600])

In [71]: arr.put(inds, 42)

In [72]: arr
Out[72]: array([  0,  42,  42, 300, 400, 500,  42,  42,800, 900])

In [73]: arr.put(inds, [40, 41, 42, 43])

In [74]: arr
Out[74]: array([  0,  41,  42, 300, 400, 500,  43,  40, 800, 900])</code></pre>
<p>要在其它轴上使用take，只需传入axis关键字即可：</p>
<pre><code>In [75]: inds = [2, 0, 2, 1]

In [76]: arr = np.random.randn(2, 4)

In 