To read from a file or file-like object, you can use the parse() function, which returns an ElementTree object: >>> tree = etree.parse(StringIO(xml)) > ...
確定! 回上一頁