response=requests.get(posturl,postData,headers)
print response.read()我构建代码,调试器报告
TypeError: get() takes exactly 1 argument (3 given)我该怎么解决它呢?
发布于 2015-08-02 16:18:00
需要使用requests.post进行POST请求:
response=requests.get(posturl, postData, headers)要获取内容,请使用response.content (如果需要字节字符串)或response.text (如果需要unicode字符串):
print response.contenthttps://stackoverflow.com/questions/31769825
复制相似问题