主页
Python
Python JSON
demo_json
运行 ❯
×
更改方向
保存代码
更改主题
import json # some JSON: x = '{ "name":"John", "age":30, "city":"New York"}' # parse x: y = json.loads(x) # the result is a Python dictionary: print(y["age"])
30