python脚本requets处理文件上传请求-multpart-formdata
method
url
header
data=
{
'dangerRegionBo': ('new_danger.json', open(r'D:\python\Lib\site-packages\Test1\new\new.json', 'rb'),'application/json'),
'file': ('abc.txt', open(r'D:\python\Lib\site-packages\Test1\abc.txt', 'rb'), 'text/pla
原创
2021-07-20 14:16:04 ·
194 阅读 ·
0 评论