</p>
<pre><code>In [18]: arr = np.arange(8)

In [19]: arr
Out[19]: array([0, 1, 2, 3, 4, 5, 6, 7])

In [20]: arr.reshape((4, 2))
Out[20]: 
array([[0, 1],
       [2, 3],
       [4, 5],
       [6, 7]])</code></pre>
<div class="figure">
<img src="//upload-images.jianshu.io/upload_images/7178691-95bbca6d8d04e4c7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700" alt="img" />
<p class="caption">img</p>
</div>
<p>图A-3 按C顺序（按行）和按Fortran顺序（按列）进行重塑</p>
<p>多维数组也�