import json
import requests
# r = requests.get('https://www.baidu.com') # 最基本的不带参数的get请求
response = requests.get(url='http://xxx.xxx.xxx.cn:8120/api/Product/GetProductInfoList', \
params={'packageNo':'582212031228293'}) # 带参数的get请求
print(type(response.text))
print(json.loads(response.text)) # 将已编码的 JSON 字符串解码为 Python 对象
标签:pythn,请求,get,python,xxx,json,requests,response
From: https://www.cnblogs.com/sute/p/17389061.html