#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/4/8 11:11
# @Author  : lihanhan
# @Email   : demo1li@163.com
# @File    : cookie转字典.py
import json

data = ''
with open('ck.txt', 'r') as f:
    f = f.read()
    cookie = {}
    for line in f.split(';'):
        key, value = line.split('=', 1)
        cookie[key] = value
json = json.dumps(cookie)
print(json)


179ad2821a263d9e5d1a57799049a8881d452521
<mask token>

<mask token>
with open('ck.txt', 'r') as f:
    f = f.read()
    cookie = {}
    for line in f.split(';'):
        key, value = line.split('=', 1)
        cookie[key] = value
<mask token>
print(json)

<mask token>
data = ''
with open('ck.txt', 'r') as f:
    f = f.read()
    cookie = {}
    for line in f.split(';'):
        key, value = line.split('=', 1)
        cookie[key] = value
json = json.dumps(cookie)
print(json)

import json
data = ''
with open('ck.txt', 'r') as f:
    f = f.read()
    cookie = {}
    for line in f.split(';'):
        key, value = line.split('=', 1)
        cookie[key] = value
json = json.dumps(cookie)
print(json)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2020/4/8 11:11
# @Author  : lihanhan
# @Email   : demo1li@163.com
# @File    : cookie转字典.py
import json

data = ''
with open('ck.txt', 'r') as f:
    f = f.read()
    cookie = {}
    for line in f.split(';'):
        key, value = line.split('=', 1)
        cookie[key] = value
json = json.dumps(cookie)
print(json)

