li = [5,6,7] np.array(li) mat = [[5,6,7],[5,6,7],[5,6,7]] np.array(mat) ... 利用rand創造隨機的陣列,範圍只會落於0-1 np.random.rand(3) ...
確定! 回上一頁