Skip to content

can't remove element #10

Description

@zhutuo

此函数不起作用。
def remove_element(element: Element):
"""
remove child element from parent
:param element:
:return:
"""
if element is None:
return
p = element.getparent()
if p is not None:
p.remove(element)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions