로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

데이터 구조 및 분석: Linear Structure and Dynamic Programming

임시 이미지 KAIST 산업및시스템공학과 문일철
http://kooc.kaist.ac.kr/datastructure-2019s/forum/37006
좋아요 1779 수강생 3366

tpltest = (1,2,3)

일 때 인덱스 상으론 0,1,2 인데

print tpltest [1:3]

을 했을 때 어떻게 (2,3)이 출력되는지 궁금합니다.

(2,3)이 출력되려면 print tpltest [1:2] 를 입력해야 하지 않나요?