Python从列表中选择一个子列表

示例

lst = ['a', 'b', 'c', 'd', 'e']

lst[2:4]
# 输出:['c','d']

lst[2:]
# 输出:['c','d','e']

lst[:4]
# 输出:['a','b','c','d']