这是python关于web请求的代码。我们可以用Unity3D webrequest编写同样的python代码吗
代码
import requests
r = requests.post(
"https://api.deepai.org/api/torch-srgan",
files={
'image': open('/path/to/your/file.jpg', 'rb'),
},
headers={'api-key': '535d7326-c37f6105b0'}
)
print(r.json())
Tags:
您可以使用^{} 来使用接受^{} 的重载,并实际使用^{}
应该是
然后,为了解析JSON结果,您可以使用
然后呢
相关问题 更多 >
编程相关推荐