python学习:输入设置

输入设置

输入用户名和密码

代码:

_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!")


posted @ 2018-08-04 16:22  十八犬夜  阅读(142)  评论(0编辑  收藏  举报