[PYTHON/NUMPY] ndarray 클래스 : ones 함수를 사용해 1로 초기화 한 배열 구하기


■ ndarray 클래스의 ones 함수를 사용해 1로 초기화 한 배열을 구하는 방법을 보여준다.

예제 코드 (PY)