您可以使用html.unescape函数:
在 Python3.4 +中 (感谢JF Sebastian的更新):
import htmlhtml.unescape('Suzy & John')# 'Suzy & John'html.unescape('"')# '"'在 Python3.3 或更旧版本中:
import html.parser html.parser.HTMLParser().unescape('Suzy & John')在 Python2中 :
import HTMLParserHTMLParser.HTMLParser().unescape('Suzy & John')


