python_utls/utils/misc.py
def format_cookies(path):
    """
    将 cookie 字符串转化为字典

    :param path: cookies 文件路径
    :return: cookies 字典
    """
    with open(path, 'r') as f:
        _cookies = {}
        for row in f.read().split(';'):
            k, v = row.strip().split('=', 1)
            _cookies[k] = v
        return _cookies
def format_cookies(path):
    """
    将 cookie 字符串转化为字典

    :param path: cookies 文件路径
    :return: cookies 字典
    """
    with open(path, 'r') as f:
        _cookies = {}
        for row in f.read().split(';'):
            k, v = row.strip().split('=', 1)
            _cookies[k] = v
        return _cookies
将 cookie 字符串转化为字典

    :param path: cookies 文件路径
    :return: cookies 字典