And determines if the user input process

User input simple code

_username ="xiaoxing"

_passwd ="123"

username = input ("usaename:")

passwd = getpass.getpass ("passwd")

if getpass == passwd and usename == uasename:

   print ("welcome to %s login")

ifelse

   print ("please try agin !")

Guess you like

Origin www.cnblogs.com/xiaoxingxing01/p/12165436.html