3.3 选学:JSON 简介
处理 JSON 的库
import json
json_string = json.dumps([1, 2, {"foo": true, "bar": None}])
json.loads(json_string)获取 JSON 响应
response = requests.get("http://some.website.com/data.json")
response.json()Web API
Last updated
Was this helpful?