python while循环控制
while循环控制代码
#!/usr/bin/python
# -*-coding:utf8-*-
#while True:
# print "hello"
# x = raw_input("please input something, q for quit:")
# if x == "q":
# break
x = ""
while x != "q":
print "hello"
x = raw_input("please input something, q for quit:")
if not x:
break
if x == "c":
continue
print "one or more time"
else:
print "ending----------------------"