Element 类. 导入模块from lxml import etree; 添加tag名为root 的节点 root = etree.Element("root"); 打印tag名 print(root.tag); 添加子节点. root.append( etree.
確定! 回上一頁