numpy.reshape(arr, newshape, order') ... import numpy as np a = np.arange(8).reshape(2,4) print '原始數組:' print a print '\n' print '調用flat 函數之後:' ...
確定! 回上一頁