reshape () 可以將現有的陣列,轉換為特定維度的陣列,使用時必須注意特定維度的項目 ... import numpy as np a = np.array([1,2,3,4,5,6,7,8]) b = a.reshape((4,2)) ...
確定! 回上一頁