序列化

序列化:
pickle: 把对象序列化成bytes
dumps() 序列化
loads() 反序列化
dump()
load()
shelve
文件类型的字典
shelve.open(filename, writeback=True)
json
把对象序列化成字符串.
dumps()
loads()
configparser
类似文件字典. 主要用来处理ini文件
原文地址:https://www.cnblogs.com/liurenli/p/9772892.html