urllib2 post请求 import urllib2 req = urllib2.Request(url, body, headers) response = urllib2.urlopen(req) return response.read()