Skip to main content

pickle

pickle 模块是 Python 标准库中的一个模块,用于序列化和反序列化 Python 对象。它可以将 Python 对象转换为字节流,并将其保存到文件中,或者从文件中读取字节流并转换回 Python 对象。