擅长:python、mysql、java
<p>如果你看一下<a href="http://docs.python-requests.org/en/latest/api/#requests.post" rel="nofollow">documentation of requests</a>,它显示了<code>data</code>关键字:</p>
<blockquote>
<p><strong>data</strong> – (optional) Dictionary, bytes, or file-like object to send in the body of the Request.</p>
</blockquote>
<p>Django的<code>request</code>对象是<a href="https://docs.djangoproject.com/en/dev/ref/request-response/#httprequest-objects" rel="nofollow">^{<cd3>}</a>的实例。您应该尝试将必要的数据放入字典中,并将其传递给<code>post()</code>。</p>