sinat_30358031
佐仓大法好
2017-07-18 07:23

python怎么读取大概1400MB的大json文件

  • python

import codecs
content=''
with codecs.open('./xxx.json', 'r') as content_file:
for line in content_file.readlines():
content=content+line
records = json.loads(json.dumps(content))
jupyter 提示The kernel appears to have died. It will restart automatically.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐