笨方法学Python习题33

#!usr/bin/python3
# -*- coding:utf8 -*-
i = 0
numbers = []

while i < 6:
    print("At the top i is {0}".format(i))
    numbers.append(i)

    i = i+1
    print("Numbers now: ", numbers)
    print("At the bottom i is {0}".format(i))

print("Numbers is:")

for num in numbers:
    print(num)

猜你喜欢

转载自blog.csdn.net/weixin_43254423/article/details/82901973