Here you go. import xml.etree.ElementTree as ET tree = ET.parse('data.xml') root = tree.getroot() with open('my_text_file.txt', 'w') as f: ...
確定! 回上一頁