這裡產生的 root 是一個 Element 物件,代表XML 的根節點,每一個 Element 物件都有 tag 與 attrib 兩個屬性: # 節點tag 屬性 print(root.tag)
確定! 回上一頁