Python for循环 Python 单行while循环 Python 通过索引迭代列表 Python for循环 #!/usr/bin/python for letter in 'Python': # First Example print 'Current Letter :', letter fruits = ['banana', 'apple', 'mango'] for fruit in fruits: # Second Example print 'Current fruit :', fruit print "Good bye!" Python 单行while循环 Python 通过索引迭代列表