==Python スライス表記==
[[Python]]
===指定した開始位置の"前"から、終了位置の"前"まで切り出す===
[[File:1025_python_slice.jpg]]
>>> >>> l = range(10) >>> >>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> >>> l[1:9]
[1, 2, 3, 4, 5, 6, 7, 8]
===STEPを指定する===
*[START:STOP:STEP]
>>> >>> l = range(10) >>> >>> l[0:8:2]
[0, 2, 4, 6]