python:尝试在else语句之后循环到raw_input

时间:2017-01-02 06:18:18

标签: python

今天刚开始自学python。但是无法弄清楚如何使用else语句循环回到之前的raw_input

print "Please enter your name below so I may know what to call you."
time.sleep(3)
name = raw_input("Name:")
time.sleep(1)
print "Your name is %s, correct?" % (name)
time.sleep(2)
verify = raw_input()
  if verify = "yes":
    print "Hello %s, it is very nice to meet you." % (name)

  else:

0 个答案:

没有答案