解决方法:需要json.dumps将入参的
字典转换为json格式的字符串
import json
import requests
def test():
url = "https://xxxx"
headers = {xxx}
datas = {"page_number":10,"page_index":1}
datas_jump = json.dumps(datas)
response = requests.post(url=url,headers=headers,data=datas_jump)
return response.content