체로 전파(또는 브로드캐스팅)된다. 리스트와의 중요한 차이점은 배열 조각은 원본 배열의 뷰
라는 점이다. 즉, 데이터는 복사되지 않고 뷰에 대한 변경은 그대로 원본 배열에 반영된다.
이에 대한 예제로 먼저
arr
배열의 슬라이스를 생성해보자.
In
[
66
]:
arr
_
slice
=
arr
[
5
:
8
]
In
[
67
]:
arr
_
slice
Out
[
67
]:
array
([ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.