更新时间:2022-02-10 21:20:22
您要使用json参数代替数据,如下所示:
Instead of data, you want to use the json parameter, as follows:
datam = {'ayyo' : 'vammo'}
r = requests.get(URL,headers={'Content-Type': 'application/json' }, json=datam)
a = r.json()
# so on
希望有帮助!