3、輸出XML內容使用 tostring 方法輸出XML內容,引數為Element物件。 >>> print(etree.tostring(root)) b'<root><child1/><child2/><child3/> ...
確定! 回上一頁