4-10切片:
print("切片")
numbers = ['1', '2', '3', '4', '5', '6', '7', '8']
lenth = len(numbers)
print("the first three items in the list are ")
print(numbers[:3])
print("three items from the middle of the list are ")
print(numbers[2:5])
print("the last three items in the list are ")
print(numbers[-3:])