#!/usr/bin/python # exact position of python
#!/usr/bin/env python # position of python in enviornment
# -*- coding:utf-8 -*- # While Loops
i = 0
numbers = []
while i < 6:
print "At the top i is %d" % i
numbers.append(i)
i = i + 1
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
print "The numbers: "
for num in numbers:
print num
Python Exercise #33
最新推荐文章于 2015-08-18 11:45:46 发布