# 定义一个登录验证函数，验证用户登录是成功还是失败
def loginSuccess(userName, passWord):
    if userName == 'admin' and passWord == '123456':
        return True
    else:
        return False


userName = input('用户名：')
passWord = input('密码：')
if loginSuccess(userName, passWord):
    print('登录成功！')
else:
    print('登录失败！')
