import json
url = "https://zjj.sz.gov.cn/zfxx/bzflh/lhmc/getLhmcList"
data={'parameter1':'12345','parameter2':'23456'}
#data=json.dumps(data)
headers = {
'Host':'zjj.sz.gov.cn',
'Origin':'https://zjj.sz.gov.cn',
'Referer':'https://zjj.sz.gov.cn/zfxx/bzflh/?path=main/%27,
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'
}
response = requests.post(url, headers=headers, json = data)
print(response.json())
print(response)
<Response [200]>
你确定你传的这两个参数能返回出有值的data?
你的url好像是有问题的,先检查一下吧