我想找到一种方法来获取元素树的所有子元素,就像使用方法ElementTree.getchildren()一样,因为getchildren()自Python版本2.7 以来不推荐使用,我不想再使用它了,尽管我目前仍然可以使用它.
ElementTree.getchildren()
getchildren()
谢谢.
python xml elementtree
elementtree ×1
python ×1
xml ×1