xml_etree_elementtree.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:python-xml 作者: emusical 项目源码 文件源码
def get_node_value(self, node):
        if node.tag == BaseET.ProcessingInstruction:
            name, target = node.text.split(' ')
            return target
        elif node.tag == BaseET.Comment:
            return node.text
        elif hasattr(node, 'value'):
            return node.value
        else:
            return node.text
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号