📅  最后修改于: 2022-03-11 14:48:37.211000             🧑  作者: Mango
import requests
import json
r = requests.get('http://server.com/api/2/....')
pretty_json = json.loads(r.text)
print (json.dumps(pretty_json, indent=2))