有一個很好的工具可以幫助您輕松地將CURL轉換為Python代碼。你可以看看: https://curlconverter.com/ 此外,您附加的CURL將轉換為類似這樣的內容。 import requestsheaders = { 'accept': 'application/json', # requests won't add a boundary if this header is set when you pass files= # 'Content-Type': 'multipart/form-data',}files = { 'strictQuotes': (None, ''), 'escape': (None, '"'), 'continueOnError': (None, ''), 'separator': (None, ';'), 'deleteFile': (None, ''), 'simulation': (None, ''), 'fileName': (None, 'synchronization_file'), 'headerRow': (None, ''), 'ignoreLeadingWhitespace': (None, ''), 'sendNotification': (None, ''), 'fileId': (None, ''), 'tem