可以使用json.loads()方法对其进行分析。import json#JSONx = '{ "name":"xiaoming", "age":30, "city":"beijing"}'# 解析y = json.loads(x)# 转为字典类型print(y["age"])执行结果:30