numpy repeat 和 tile

1
2
3
4
5
np.repeat([1,2], 4)
array([1, 1, 1, 1, 2, 2, 2, 2])

np.tile([1,2], 4)
array([1, 2, 1, 2, 1, 2, 1, 2])
请作者喝一杯咖啡☕️