names = ['one','two','three','four','five'] #列表切片 print(names[0:]) #['one', 'two', 'three', 'four', 'five'] print(names[1:]) #['two', 'three', 'four', 'five'] print(names[1:-1]) #['two', 'three', 'four'] print(names[1:-1:2]) #['two', 'four'],从左到右隔一个取…