count = 0
while count < 3:
      user = input('>>>')
      pwd = input('>>>')
      if user == 'wy' and pwd == '123':
          print "欢迎登陆"
          break
      else:
          print "用户名或者密码错误"
      count = count +1

 

posted on 2018-04-24 11:10  wy0925  阅读(122)  评论(0编辑  收藏  举报