可以透過ElementTree 的tostring 將Element 轉成string bytes 印出. >>> from xml.etree.ElementTree import tostring >>> tostring(elem) b'<student><id>1< ...
確定! 回上一頁