기타
넘파이에서 리스트처럼 곱하기 적용하고싶을때
블로그별명
2023. 2. 25. 03:27
import numpy as np
arr1 = np.array([1])
arr2 = np.repeat(arr1, 4)
print(arr2) # [1 1 1 1]