You are viewing a single comment's thread. Return to all comments →
def get_attr_number(node): attrs = len(node.attrib) if len(node) == 0: return attrs return attrs + sum(get_attr_number(child) for child in node)
Seems like cookies are disabled on this browser, please enable them to open this website
XML 1 - Find the Score
You are viewing a single comment's thread. Return to all comments →