print "type 3 to continue, anything else to quit." someinput=raw_input() while someinput=="3": print "thank you for the 3,very kind of you." print "type 3 to continue,anything else to quit." someinput = raw_input() print "that‘s not 3,so I am quitting now"
原文地址:http://huzhongliang.blog.51cto.com/1817180/1890763