登陆界面

def win_login():
    """登陆界面"""
    email = input(EMAIL_INFO)
    password = getpass.getpass(PASS_INFO)
    captcha_id = get_captcha_id()
    get_capthca_pic(captcha_id)
    file = '/tmp/captcha_pic.jpg'
    try:
        from subprocess import call
        from os.path import expanduser
        call([expanduser('~') + '/.iterm2/imgcat', file])
    except:
        import webbrowser
        webbrowser.open('file://' + file)
    captcha_solution = input(CAPTCHA_INFO)
    return email, password, captcha_solution, captcha_id