6、continue语句

while True:
    s = input('Enter something : ')
    if s == 'quit':
        break
    if len(s) < 3:
        print('Too small')
        continue
print('Input is of sufficient length')
# 自此处起继续进行其它任何处理

 

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