pickling 和unpickling是什么?

Pickle module accepts any Python object and converts it into a string representation and dumps it into a file by using dump function, this process is called pickling.

While the processing of retrieving original Python objects from the stored string representation is called unpickling.

Pickle模块可以处理所有的Python对象并将其转换为字符串的表现形式,并可以使用dump函数将其转储到文件中,这个过程称为Pickle。

从存储的字符串中检索原始Python对象的过程称为unpickle。

 

json只能处理简单的,而pickle是用来处理复杂的数据类型。

json和pickle的操作和json一模一样。

json和pickle数据序列化:http://www.cnblogs.com/zoe233/p/7091119.html

posted on 2017-08-22 13:44  Zoe233  阅读(705)  评论(0编辑  收藏  举报