python学习——将while循环改成函数

笨办法学python第33节 这一节主要学习内容是while循环,记录内容为将while改成函数,首先源代码如下: 1 i = 0 2 numbers = [] 3 4 while i < 6: 5 print "At the top i is %d" % i 6 numbers.append(i) 7 8 i = i + 1 9 print
相关文章
相关标签/搜索