array = np.zeros([2, 3])print(array)
array = np.matrix(np.zeros([2, 3]))print(array)
看起来毫无区别,用起来应该是都能用,但一般第一个用法比较常见,第二个的写法显得多余。