wxin 发表于 2018-8-13 13:21:47

2017-08-21Python作业

_username = 101645  
_password = 101645
  
for i in range(100):
  
    username = int(input("username:"))
  
    password = int(input("password:"))
  
    if username == _username and password == _password:
  
      print("Wlcome to system")
  
      break
  
    if username != _username and password != _password:
  
      print("The users and password is error")
  
      if i == 2:
  
            print("the system is locking")
  
            break
页: [1]
查看完整版本: 2017-08-21Python作业