... 輸出陣列就會是 [[a[0], a[1], 2], [a[1], a[3], a[4]], [a[2], a[3], a[1]]] ,也就是 ... 二維陣列時,可以使用兩個索引陣列: >>> a = np.arange(25).reshape((5, 5)) ...
確定! 回上一頁