import getpass
_username="name"
_password="pass"
username=input("username")
password=getpass.getpass("password")
print(username,password)
if _username==username and _password==password :
print ("用户名正确:".format(name==username))
else:
print("密码错误")
时间: 2024-10-31 06:11:55