已经有一个类似的帖子在这里。这是他们提出的解决方案:
import jsonwith open('file.json') as infile: o = json.load(infile) chunkSize = 1000 for i in xrange(0, len(o), chunkSize): with open('file_' + str(i//chunkSize) + '.json', 'w') as outfile: json.dump(o[i:i+chunkSize], outfile)

![在Python中加载大型JSON列表的最佳方法是什么?[重复] 在Python中加载大型JSON列表的最佳方法是什么?[重复]](http://www.mshxw.com/aiimages/31/517211.png)
