我在python IDLE输入这段代码然后按Enter,没有任何反应是怎么回事,s什么结果也没有出来,反而出来一个>>>,我就纳闷了,高手教教啊 我是菜鸟级的菜鸟 刚学习2天
shoplist = ['apple', 'mango', 'carrot', 'banana']
# Indexing or 'Subscription' operation
print 'Item 0 is', shoplist[0]
print 'Item 1 is', shoplist[1]
print 'Item 2 is', shoplist[2]
print 'Item 3 is', shoplist[3]
print 'Item -1 is', shoplist[-1]
print 'Item -2 is', shoplist[-2]
应该结果是 $ python seq.py
Item 0 is apple
Item 1 is mango
Item 2 is carrot
Item 3 is banana
Item -1 is banana
Item -2 is carrot 急啊 是什么原因啊