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/plain') }
res=requests.request(method, url, header, files=data)