import requests

# 登录信息
login_url = 'https://win.uad360.com'  # 假设这是登录的URL
test_account = {
    'username': 'admin',
    'password': 'pc9527..'
}

# 创建会话
session = requests.Session()

def login():
    """尝试登录"""
    response = session.post(login_url, data=test_account)
    if response.status_code == 200:
        print("登录成功")
    else:
        print("登录失败")
    return response

def logout():
    """尝试登出"""
    # 这里应该替换为实际的登出URL
    response = session.get('https://win.uad360.com')
    if response.status_code == 200:
        print("登出成功")
    else:
        print("登出失败")
    return response


def access_page():
    pass


if __name__ == "__main__":
    login_response = login()
    if login_response.status_code == 200:  # 如果登录成功
        access_page()
        logout()