Python 转义html中以"&#"开头的字符

from HTMLParser import HTMLParser
print HTMLParser().unescape('中国')
posted @ 2018-01-16 14:29  右介  阅读(707)  评论(0编辑  收藏  举报