缺省值-1:np.reshape里面的-1代表不知道要给行(或者列)设置为几,reshape函数会根据原矩阵的形状自动调整。 >>> import numpy as np >>> z = np.array ...
確定! 回上一頁