json介绍

dumps是将dict转化成str格式,loads是将str转化成dict格式。

dump和load也是类似的功能,只是与文件操作结合起来了。

 

posted @ 2017-06-25 17:43  grape_lee  阅读(107)  评论(0编辑  收藏  举报