多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 11. Data Persistence The modules described in this chapter support storing Python data in a persistent form on disk. The [pickle](# "pickle: Convert Python objects to streams of bytes and back.") and [marshal](# "marshal: Convert Python objects to streams of bytes and back (with different constraints).") modules can turn many Python data types into a stream of bytes and then recreate the objects from the bytes. The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings. The [bsddb](# "bsddb: Interface to Berkeley DB database library") module also provides such disk-based string-to-string mappings based on hashing, and also supports B-Tree and record-based formats.