def format_cookies(path):
with open(path, '<STR_LIT:r>') as f:<EOL><INDENT>_cookies = {}<EOL>for row in f.read().split('<STR_LIT:;>'):<EOL><INDENT>k, v = row.strip().split('<STR_LIT:=>', <NUM_LIT:1>)<EOL>_cookies[k] = v<EOL><DEDENT>return _cookies<EOL><DEDENT>
将 cookie 字符串转化为字典

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