2017-02-19から1日間の記事一覧
pryでshellコマンドを実行する方法 ドット(.)でshell コマンドが使える 例 .ls .cd
numpyのshapeとndim 前提 import numpy as np shape 各次元の要素数を確認することができる。 a = np.array([1, 2]) a.shape ## => (2,) , 各次元の要素数(行数、列数) ndim 次元を確認することができる a = np.array([1, 2]) a.ndim ## => 1 , 次元数