np.repeat 和 np.tile
repeat
与 tile
函数都是 numpy 中关于数组复制扩充相关的操作.
tile
是复制的多维数组本身: Construct an array by repeating A the number of times given by reps.repeat
复制的则是多维数组的每个元素: Repeat elements of an array.
具体可以参考 https://blog.csdn.net/bitcarmanlee/article/details/91361289