首页 > 技术文章 > Python 转义html中以"&#"开头的字符

zhangtianyuan 2018-01-16 14:29 原文

from HTMLParser import HTMLParser
print HTMLParser().unescape('中国')

推荐阅读