def login():
    print("login...")

    user = input("请输入账户")
    pwd = input("请输入密码")

    flag = student_interface.login_interface(user, pwd)
    if flag:
        user_dic["user"] = user
        print("登陆成功")
示例#2
0
def login():
    while True:
        name = input('输入学生用户名:')
        if name == 'q':
            break
        pwd = input('输入学生密码:')
        flag, msg = student_interface.login_interface(name, pwd)
        print(msg)
        if flag:
            student_info['user'] = name
            break
def login():
    while 1:
        user_name = input('user_name:>>').strip()
        if user_name == 'q': break
        password = input('password:>>').strip()
        flag, msg = student_interface.login_interface(user_name, password)
        if flag:
            user_info['name'] = user_name
            print(msg)
            break
        else:
            print(msg)
示例#4
0
def login():
    while True:
        username = input('输入你的用户名').strip()
        password = input('输入你的密码').strip()

        flag, msg = student_interface.login_interface(username, password)
        if flag:
            print(msg)
            student_info['user'] = username
            break
        else:
            print(msg)
def login():
    """
    学生登录接口
    """
    username, pwd = common.input_username_pwd()
    flag, msg = student_interface.login_interface(username, pwd)

    if flag:
        print(msg)
        student_info['user'] = username
    else:
        print(msg)
def login():
    while True:
        username = input('姓名,q退出')
        if username == 'q':
            break
        pwd = input('密码')
        flag, msg = student_interface.login_interface(username, pwd)
        if flag:
            print(msg)
            user['username'] = username
            break
        else:
            print(msg)
示例#7
0
def login():
    print(f'{"*"*15}欢迎来到登陆功能{"*"*15}')
    while True:
        username = input("请输入姓名,q退出>")
        if username == 'q':
            break
        pwd = input('请输入密码>')
        flag, msg = student_interface.login_interface(username, pwd)
        if flag:
            print(msg)
            student_info['username'] = username
            break
        else:
            print(msg)
示例#8
0
def student_login():
    '''学生登录'''
    while True:
        if student_status['user'] is not None:
            print('您已经登录')
            break
        else:
            user = input('请输入登录的用户名:').strip()
            passwd = input('请输入登录的密码:').strip()
            obj = student_interface.login_interface(user, passwd)
            if obj:
                print('登录成功')
                student_status['user'] = obj
                break
            else:
                print('登录失败')