np.zeros()
作者:互联网
np.zeros()是生成用0填充的数组的
np.zeros(5):
一行五列
array([0,0,0,0,0])
np.zeros(1,5):
一个一行五列
array([[0,0,0,0,0]])
np.zeros(2,5)
两个一行五列
array([
[0,0,0,0,0]
[0,0,0,0,0]])
np.zeros((2,3,3))
两个三行三列
array([ [[0,0,0]
[0,0,0]
[0,0,0]]
[[0,0,0]
[0,0,0]
[0,0,0]] ])
标签:五列,三列,zeros,一行,np,array 来源: https://blog.csdn.net/qq_38739667/article/details/100511508