python - python3请求发布表单数据
问题描述
它适用于邮递员,但是当我尝试在 python 请求中运行它时,它显示不正确的结果。这是我的代码:
data ={'state': {'no': state_number}}
input= {'input':data}
headers = {'Content-type': 'multipart/form-data'}
state_list = requests.post(url="http://myurl.com",data=input,headers=headers).json()