對結點進行更新後,可以使用 ElementTree.write() 方法將更新後的XML 文件寫入檔案中。 # 獲取XML 文件物件ElementTree tree = ET.parse('example.xml') # ...
確定! 回上一頁