huashan8 发表于 2018-8-12 13:00:23

python联系-while循环

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"
页: [1]
查看完整版本: python联系-while循环