[python] np array에서 앞뒤에 새로운 원소 추가

    

 concatenate를 사용하는 방법이 있다.

np.concatenate([[front],a,[back]])



https://stackoverflow.com/questions/32828922/insert-elements-to-beginning-and-end-of-numpy-array

댓글

이 블로그의 인기 게시물

스무스 스텝(Smoothstep), 가우스 함수(Gaussian), 그리고 사인 함수(Sine)

blender mcp

mcp 프로로콜