로딩
요청 처리 중입니다...

Python_XML 1 - Find the Score_HackerRank

 Python_XML 1 - Find the Score_HackerRank

Python_XML 1 - Find the Score_HackerRank XML 1 - Find the Score 풀이 import sys import xml.etree.ElementTree as etree def get_attr_number(node): total = 0 for child in node.iter(): total += len(child.attrib) return total if __name__ == '__main__': sys.stdin.readline() xml = sys.stdin.read() tree = etree.ElementTree(etree.fromstring(xml)) root = tree.getroot() print(get_attr_number(root)) * 출처 XML 1 - Find the Score | HackerRank Learn about XML parsing in Python. www.hackerrank.com...

# Python # Python_HackerRank # Python_XML1_FindtheScore # Python_XML1_FindtheScore_HackerRank # XML1_FindtheScore_HackerRank