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
相關文章
相關標籤/搜索