numpy 套件除了 array() 方法可以將list 轉換成ndarray,還有其他的方法可以建立ndarray。 ... import numpy as np print(np.zeros(6)) # 六個元素均為零的1d array ...
確定! 回上一頁