📜  mu python 复制数组 n 次 - Python 代码示例

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

代码示例1
# Just use tile method which multiplies the array with given shape 
# and reshape method to structure it. 

x=np.tile(x,(3,1))
y=x.reshape(x.shape[0]*x.shape[1])