xml.etree.ElementTree.Element def append(self, __subelement: Element) -> None
时间: 2024-05-31 16:08:35 浏览: 153
python_XML-6-17.rar_python 文件_python xml_python读写xml_python读写xm
The `append` method of the `Element` class in the `xml.etree.ElementTree` module is used to add a sub-element to the current element.
The method takes a single argument, `__subelement`, which is the sub-element to be added. The argument must be an instance of the `Element` class.
The method returns `None` as it modifies the current element in place and does not return anything.
阅读全文