Data Persistence数据持久层

The modules described in this chapter support storing Python data in a persistent form on disk. 本章描述的模块支持以持久形式将Python数据存储在磁盘上。The pickle and marshal modules can turn many Python data types into a stream of bytes and then recreate the objects from the bytes. picklemarshal模块可以将许多Python数据类型转换为字节流,然后从字节中重新创建对象。The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings.各种与DBM相关的模块支持一系列基于哈希的文件格式,这些格式存储字符串到其他字符串的映射。

The list of modules described in this chapter is:本章介绍的模块列表如下: