print 'hello world',
2、python 3.x中,需要在函数内增加一个end字段:
print('hello world', end='')
最后解决办法:使用HTMLParser
把输出的xml转换一遍
html_parser = HTMLParser.HTMLParser()
tranform = html_parser.unescape(self.dom.toxml().decode('utf-8'))
print 'hello world',
2、python 3.x中,需要在函数内增加一个end字段:
print('hello world', end='')
最后解决办法:使用HTMLParser
把输出的xml转换一遍
html_parser = HTMLParser.HTMLParser()
tranform = html_parser.unescape(self.dom.toxml().decode('utf-8'))