擅长:python、mysql、java
<p>看起来你不是在写文件。试试这个</p>
<pre><code>### Downloaded the converted file
url = BASE_URL + 'modelderivative/v2/designdata/' + urn + '/' + OURL
headers = {
'Authorization' : 'Bearer ' + ACCESS_TOKEN
}
with open(OUTPUT_FILE, 'w+') as f:
r = requests.get(url, headers=headers, data=f)
f.write(r.json())
</code></pre>