The solution ElementTree adopts is to give each node a .tail attribute, which contains all the text after a closing tag but before the next element begins or the parent element is closed. For example
ElementTree 采用的解决方案赋予了每个节点一个 .tail属性,它包含了位于结束标记之后,下一元素开始或父元素结束之前所有的文本。
The solution ElementTree adopts is to give each node a .tail attribute, which contains all the text after a closing tag but before the next element begins or the parent element is closed. For example
ElementTree 采用的解决方案赋予了每个节点一个 .tail属性,它包含了位于结束标记之后,下一元素开始或父元素结束之前所有的文本。
应用推荐