擅长:python、mysql、java
<p>改为使用请求。在</p>
<pre><code>import requests
requests.post(
'http://192.168.50.88/emoncms/nodes/1/tx/values',
data='17,58, 5,1569, 0, 3000, 236',
headers={'content-type': 'text/plain'}
)
</code></pre>
<p>您也可以通过这样做来存储响应。。。在</p>
^{pr2}$
<p>然后你可以从这个r变量访问响应代码,任何附加的数据,头等等。在</p>
<p><a href="http://docs.python-requests.org/en/latest/" rel="nofollow">http://docs.python-requests.org/en/latest/</a></p>