#!/usr/bin/env python
#codingutf-8
count = 0
while count < 3:
   username = raw_input("USERNAME:")
   password = raw_input("PASSWORD:")
   if username == "user" and password == "123":
       print "welcome!!!"
       
break
   elif
username != "user" and password != "123":
       print "username or password wrong!!!"
   
elif username == "user" and password != "123":
       print "password is wrong!!!"
   
elif username != "user" and password == "123":
       print "username or password is wrong!!!"
   
count +=1
   
if count == 3:
       print "go away ang don't back!!!"

Python 练习1

相关文章:

  • 2021-11-04
  • 2021-10-21
  • 2021-11-06
  • 2021-05-02
  • 2021-06-01
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-09-26
  • 2021-08-04
  • 2021-09-12
相关资源
相似解决方案