输入设置
输入用户名和密码
代码:
_user = "alex"
_password = "abc123"
username = input("Username:")
password = input("Password:")
if username == _user and password == _password:
print("Welcome %s login ... " % _user)
else:
print("Invalid username or password!")
输入设置
输入用户名和密码
代码:
_user = "alex"
_password = "abc123"
username = input("Username:")
password = input("Password:")
if username == _user and password == _password:
print("Welcome %s login ... " % _user)
else:
print("Invalid username or password!")