라벨이 itertools인 게시물 표시

[python]파이썬: collections deque 슬라이싱 하는 법 (itertools)

이미지
itertools에 있는 islice 설명 iterable한 객체(list, range등)를 your_list에 넣으신 뒤 start, end를 설정해주시면 slice가 가능합니다. step을 사용하지 않은 경우 step을 사용한 경우 참고문헌 https://hamait.tistory.com/803 https://docs.python.org/3/library/itertools.html