如何用python获取response的xml内容数据?要先说明后台的web框架是什么, 如果是简单的cgi: print Content-Type: text/xml print xml字符串就可以了。 使用Django作为web框架: from django.http import HttpResponse def 请求时调用的方法(request): xml = xml字符串 return Htt