본문 바로가기

Computer Science

[Python] Python 기초 정리

Index

  string, list 등에서 사용

  n >= 0일 때, n번째 요소를 의미

  n < 0일 때, 마지막에서 n번째 요소를 의미 (n<0일 때, a[n] == a[a.length-n])