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 += ' Enter quit to end the program'
active = True
while active:
message = input('please tell the thing')
if message == 'quit':
active = False
else:
print(message)




原文地址:https://www.cnblogs.com/superblog/p/8471460.html