def sayHello(): print('Hello World!')while True: s = input('Enter something : ') if s == 'quit': break if len(s) < 3: print('Too small') continue sayHello()
本文共 242 字,大约阅读时间需要 1 分钟。
def sayHello(): print('Hello World!')while True: s = input('Enter something : ') if s == 'quit': break if len(s) < 3: print('Too small') continue sayHello()
转载于:https://www.cnblogs.com/aguncn/p/3240292.html