当前位置:首页>开发>正文

如何用python获取response的xml内容数据

2023-05-21 17:33:46 互联网 未知 开发

如何用python获取response的xml内容数据?

如何用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

最新文章