#!/usr/bin/env python

# list下标从0开始
a=[5,9,15,20]

print(a[1:3])
print(a[:3])

# 倒数切片
print(a[-2:])



#a=['today','cat','tommorrow']
#for x in a:
#	print x,len(x)

#fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
#print type(fruits)
#print fruits.count('apple')


#stack=[3,4,5]
#
#stack.append(6)
#stack.append(7)
#stack.append(8)
#
#print stack
#
#stack.pop()
#print stack
#
#stack.pop()
#print stack
#
#stack.pop()
#print stack
