IT
[python]썰매를 이해합니다
썰매를 이해합니다 질문 파이썬 슬라이싱에서 좋은 설명이 필요합니다 (참조는 더한 플러스입니다). 답변 그것은 꽤 간단합니다.a[start:stop] # items start through stop-1 a[start:] # items start through the rest of the array a[:stop] # items from the beginning through stop-1 a[:] # a copy of the whole array 또한 위의 것과 함께 사용할 수있는 단계 값이 있습니다.a[start:stop:step] # start through not past stop, by step 기억해야 할 키 포인트는 다음과 같습니다. Stop 값은 선택한 슬라이스에없는 첫 번째 값을 나타냅니다.그..
2022. 3. 31. 10:21
최근댓글