a[-3:] # get last 3 elements a[3:7] # get 4 elements starting from 3rd (≡ from 3rd to 7th exclusive) a[3:-3] # get all elements except the first 3 and the ...
確定! 回上一頁