作业小练习(使用while循环输入 1 2 3 4 5 6 8 9 10)

1、使用while循环输入 1 2 3 4 5 6 8 9 10

 

b= 0
while True:
    b +=1

    if b==7:
        continue
    if b> 10:
        break

    print(b)

 

posted @ 2018-03-16 09:55  人无远虑  阅读(281)  评论(0编辑  收藏  举报