📜  numpy randn 具有另一个数组的形状 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:34.495000             🧑  作者: Mango
代码示例1
a = np.zeros([2, 3])
print(a.shape)
# outputs: (2, 3)
b = np.random.randn(*a.shape)
print(b.shape)
# outputs: (2, 3)