你可以使用以下代码来解析该 JSON 字符串:

import json

json_str = '{"result_code": 80064, "result": "任务奖励已经领取过了", "data": {}}'
data = json.loads(json_str)

result_code = data['result_code']
result = data['result']

输出:

result_code: 80064
result: 任务奖励已经领取过了
Python 解析 JSON 字符串 - 示例与代码

原文地址: https://www.cveoy.top/t/topic/qDZO 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录