首页 > 编程语言 > 详细

python联系-while循环

时间:2017-01-10 18:19:01      阅读:215      评论:0      收藏:0      [点我收藏+]
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循环

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!