列表
# 获取
lst=[1,2,3,4,5,6,7,8,9]
print(lst)
print(lst[2])
#start stop step
print(lst[0:2:1])
print(lst[8:0:-1])
print(lst[8::-1])
print(lst.index(1))
列表
# 获取
lst=[1,2,3,4,5,6,7,8,9]
print(lst)
print(lst[2])
#start stop step
print(lst[0:2:1])
print(lst[8:0:-1])
print(lst[8::-1])
print(lst.index(1))