slicing 이해하기
Understanding slicing How does Python's slice notation work? That is: when I write code like a[x:y:z], a[:], a[::2] etc., how can I understand which elements end up in the slice? Please include references where appropri... stackoverflow.com 문법은 다음과 같습니다. a[start:stop] # start 에서 stop-1까지의 요소들 a[start:] # start 에서 배열의 나머지까지 요소들 a[:stop] # 처음부터 stop - 1 까지 요소들 a[:] # 전체 배열의 복사본 step 값이라는 것이 있는 데, ..
2023.03.29