import requests import json url = "http://xxxxxxxxxxxxxxxxxxxxxx" r = requests.get(url, params={‘eid‘: ‘1‘}) result = r.json() print(result) print(json.dumps(result, encoding="UTF-8", ensure_ascii=False)) print(result[‘status‘]) print(result[‘message‘]) print(result[‘data‘][‘name‘]) #获取返回的data中的name
原文地址:https://www.cnblogs.com/qiqi-yhq/p/12580379.html
时间: 2024-10-04 14:59:09