I found another great solution : f = open(filename, 'w') dom_string = dom1.toprettyxml(encoding='UTF-8') dom_string = os.linesep.join([s for ...
確定! 回上一頁