##复杂的字典或列表,添加json包,运用json.dumps(data)请求 --------例子------- import requests,json url="http://172.19.32.73:18322/jobs" data=[ { "id": "aed4bbc7-ea2c-4840-9e59-b61fb901a807", "startTime": "1572340332000", "endTime": "1574997131000", "relatedTaskIds": [ "426f7f7b-3106-4360-8305-0148daa681b6" ], "state": "new", "geometry": "Polygon((116.37485 40.03422,116.41396 40.02988,116.40568 40.01711,116.37594 40.02078,116.37485 40.03422))", "collectionTypes": [ "PHOTOGRAPH","HDMAP" ] } ] headers = {'Content-Type': 'application/json'} job=requests.post(url,json.dumps(data),headers=headers) print(job.status_code)