urlliburllib2base64 url = data = data_base64 = base64.b64encode(data) data_url = urllib.urlencode(data_base64) url2 = urllib2.Request(urldata_url) response = urllib2.urlopen(url2) apicontent = response.read() apicontent 错误: Traceback (most recent call last): File "F:/python_test/�ӿڲ���", line 7, in <module> data_url = urllib.urlencode("'"+data_base64+"'") File "D:\Python27\lib\urllib.py", line 1333, in urlencode raise TypeError TypeError: not a valid non-string sequence or mapping object
weenhall
相关分类