xml类的封装 # coding=UTF-8import xml.etree.ElementTree as ETimport traceback#封装自己的xml解析工具类#创建时传入文件路径#根据传入的XPath表达式获取结果,返回集合class XML: def __init__(self,path): self.path = path try: python学习笔记 2023-09-28 36 点赞 0 评论 54 浏览