假設我們想建構一個長度為 5 的實數陣列,可以使用如下的指令: >>> a = np.array([1, 4, 5, 8, 7], dtype = float) >>> a array([ 1., 4., 5., 8., 7.])請注意在宣告 ...
確定! 回上一頁