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