1. import json 简单序列化 json.jumps() json.loads()
2. import pickle 只有python中才能识别的序列化。dumps dump loads load
d = [12,2,3,4,5]
pickle.dumps(d) pickle.loads()
pickle.dump(d,f) pickle.load(f)