5、break语句

while count <= 100:
    print(count)

    if count == 5:
        break

    count += 1

print('loop over')

 

posted @ 2018-01-20 20:43  善行无辙  阅读(120)  评论(0编辑  收藏  举报