參考:numpy中的ravel()、flatten()、squeeze()的用法与区别. import numpy as np ary = np.arange(12).reshape(3,4) print(“ary:\n”,ary)
確定! 回上一頁