如何用python获取response的xml内容数据(python怎么配置requests)

如何用python获取response的xml内容数据(python怎么配置requests)

首页维修大全综合更新时间:2025-05-18 08:37:23

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

大家还看了
也许喜欢
更多栏目

© 2021 3dmxku.com,All Rights Reserved.