w Parsing Huge XML Files Incrementally http://pclib.github.io/safari/program/python-cookbook/Text/ch06s04.html 如何:执行大型 XML 文档的流式转换https://msdn.microsoft.com/zh-cn/library/bb387013.aspx 大XML文件解析入库的一个方法 - 天下无贼 - 51CTO技术博客http://guojuanjun.blog.51cto.co…
一.本节用到的基础知识 1.逐行读取文件 for line in open('E:\Demo\python\json.txt'): print line 2.解析json字符串 Python中有一些内置模块可以非常便捷地将json字符串转换为Python对象.比如json模块中的json.relaods()方法可以将json字符串解析为相应的字典. import json s='{ "a": "GoogleMaps\/RochesterNY", "c&qu…