码迷,mamicode.com
首页 > 编程语言 > 详细

python联系-while循环

时间:2017-01-10 18:19:56      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:python   continue   anything   

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"


python联系-while循环

标签:python   continue   anything   

原文地址:http://huzhongliang.blog.51cto.com/1817180/1890763

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!