numpy.repeat 함수는 어레이의 요소들을 지정한 횟수만큼 반복합니다. 예제1¶. import numpy as np a = np.repeat(3, 4) b = np.repeat([1, 2], 3) print(a) print(b).
確定! 回上一頁