python知识

#使用标志
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)
    
        
View Code

使用标志

posted @ 2020-05-25 16:05  jingding  阅读(34)  评论(0)    收藏  举报