擅长:python、mysql、java
<p>下面是一个简单的例子:</p>
<pre><code>p_session = requests.Session()
signin_response = p_session.post(signin_url,
data=logininfo,
headers=headers,
verify=False,#verify ssl
)
#print out the response content, which is in the form of dictionary
print signin_response.content
#according to the output, you may have ideas to judge whether login or not, according to the keys
#one way to fetch the value of key is:
print signin_response.json()[u'reply_msg']#assume reply_msg is one of the keys
</code></pre>