📅  最后修改于: 2022-03-11 14:45:32.245000             🧑  作者: Mango
# 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])