📜  np.zeros 数据类型无法理解 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:08.154000             🧑  作者: Mango

代码示例1
import numpy as np
dim = 3 # number of entries
shp = (dim, 1) # shape tuple
x = np.zeros(shp) # second argument 'dtype' is not used, default is 'float'
print(x)