python之再学习----简单的循环

# filename:python2.26.py
# author:super
# date:2018-2-26

# name = input('what is u name?')
# print('my name is '+name)
#
# age = input('what is your age')
# print('my age is '+age)

prompt = 'tell me something, if you want to tell me'
prompt += '\n Enter quit to end the program'
active = True
while active:
message = input('please tell the thing')
if message == 'quit':
active = False
else:
print(message)




posted @ 2018-02-26 09:06  super-JAVA  阅读(140)  评论(0编辑  收藏  举报