Elements (как и root ) не имеют метода write , но ElementTrees имеют: from lxml import etree root = etree.Element('root1') element = etree.
確定! 回上一頁