#使用标志 prompt="\nTell me something,and i will repeat it back." active=True while active: message=input(prompt) if message =='quit': active=False else: print(message)
使用标志