序列化:
1.json
2.pickle
4个方法 2组
dumps loads -- 用于网络传输
dump load -- 用于文件存储
dic = {"key": 1}
lst = [1,2,3,4]
手写
new_dic = {}
k,v = dic.replace("{","").replace("}","").replace('"',"").split(":")
new_dic[k] = v
print(new_dic["key"])
import json # 重点