numpy.zeros関数 NumPy 各要素が0の配列を生成する。 ■実験 >>> import numpy as np >>> x = np.zeros([2, 3]) >>> x array([[ 0., 0., 0.], [ 0., 0., 0.]])