错误信息: send: 'POST http://api.qcloud.cn/intf.php?method=Qds.put&v=1&key=desktop-weiboauth-87000945&lsig=e3f9e50869aa31251870e542dda4c90a&cs=2b2029835e1a53f2e0f233e14973cfb4 HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 181\r\nHost: api.qcloud.cn\r\nContent-Type: multipart/form-data; boundary=b673099801d548aa9e4cef450e9530df\r\nConnection: close\r\nUser-Agent: Python-urllib/2.7\r\n\r\n' Traceback (most recent call last): File "E:\workspace\fgos\TestGood\post_test.py", line 38, in <module> send: <poster.encode.multipart_yielder instance at 0x011FE288> result = urllib2.urlopen(request) File "C:\Python27\lib\urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "C:\Python27\lib\urllib2.py", line 394, in open response = self._open(req, data) File "C:\Python27\lib\urllib2.py", line 412, in _open '_open', req) File "C:\Python27\lib\urllib2.py", line 372, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 1199, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1168, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "C:\Python27\lib\httplib.py", line 955, in request self._send_request(method, url, body, headers) File "C:\Python27\lib\httplib.py", line 989, in _send_request self.endheaders(body) File "C:\Python27\lib\httplib.py", line 951, in endheaders self._send_output(message_body) File "C:\Python27\lib\httplib.py", line 815, in _send_output self.send(message_body) File "C:\Python27\lib\httplib.py", line 787, in send self.sock.sendall(data) File "C:\Python27\lib\socket.py", line 224, in meth return getattr(self._sock,name)(*args) TypeError: must be string or buffer, not instance