#!/use/bin/python#-*-coding:utf-8-*-importgetpass_username='zhangsan'_password='abc123'username=input("username:")password=getpass.getpass("password:")if_username==usern...
#!/use/bin/python#-*-coding: utf-8 -*-import getpass_username = 'zhangsan'_password = 'abc123'username = input("username: ")password = getpass.getpass("password: ")if _username == username and _password == password : print("Welcome user {name} login ".format(name = username))else : print("Invilade username or password!")print(username,password)
这是代码
#!/use/bin/python
#-*-coding: utf-8 -*-
import getpass
_username = 'zhangsan'
_password = 'abc123'
username = input("username: ")
password = getpass.getpass("password: ")
if _username == username and _password == password :
print("Welcome user {name} login ".format(name = username))
else :
print("Invilade username or password!")
print(username,password)
展开