python based learning 19,01

Getting started is easy to hear python, so I want to try this on the basis of zero will not be very friendly too. Essays also the way to make myself do not easily give up learning.

# Login Interface 
Print ( " Please enter your user name and password " ) 

_username = " Sun " 
_password = " 123 " 

COUNT = 0
 the while COUNT <3 : 
    username = the INPUT ( " Username: " ) 
    password = the INPUT ( " Password: " )
     IF _username == username and _password == password:
         Print ( " ! Congratulations on a successful login {name} " .format (name =username))
         BREAK 
    elif _username =! username:
         Print ( " User name wrong! " )
     the else :
         Print ( " Wrong password! " ) 
    COUNT + = 1
     IF COUNT == 3 :
         Print ( " Locked! " )

 

Guess you like

Origin www.cnblogs.com/koonxger/p/11236836.html