📅  最后修改于: 2022-03-11 14:45:23.360000             🧑  作者: Mango
sample = tuple(range(100))
# beg, end, step (end is not included)
print(sample[69: 100]) # has numbers in range [69, 99)
print(sample[2: 68: 2]) # all numbers from 2 to 68 (excluding 68) with step 2
print(sample[69:]) # from 69 to end
print(sample[::-1]) # reversed ones