python读取 json文件的方法

import json
with open ('ocr结构化输出/10000.json') as f: #调用的高精度腾旭ocr
   tmp=f.read()
   tengxunjieguo=json.loads(tmp)

别使用json.load, 经常爆编码错误.!!!!!!!!!!!!!!!!!!使用read再loads即可.

posted on 2024-05-23 07:18  张博的博客  阅读(2)  评论(0编辑  收藏  举报

导航