np.ndarrayを作る際に、dtypeパラメータを指定することで配列の要素の型を指定できます。 int16arr = np.array([1,2,3], dtype=np.int16) float32arr ...
確定! 回上一頁