主页
Python
Python requests.Response Object
demo_requests_response_json
运行 ❯
×
更改方向
保存代码
更改主题
import requests url = 'https://www.freew3c.com/python/demopage.js' x = requests.get(url) print(x.json())
C:\Users\My Name>python demo_requests_response_json.py
{'firstname': 'John', 'lastname': 'Doe'}