本教程討論如何在Python 中解析XML 檔案。 ... ET.fromstring(file1) x = tree.findall('bar/type') for item in x: print(item.get('foobar')).
確定! 回上一頁