import numpy as np a = np.array([[1,2],[3,4],[5,6],[7,8]]) b = a.reshape(-1) # 轉換成一維陣列 print(b) # [1 2 3 4 5 6 7 8] c = a.reshape((2,-1)) ...
確定! 回上一頁