以‘&#’ 或者‘&#x’开头的字符串, 这是HTML、XML 等 SGML 类语言的转义序列 import html a = '外观' print(html.unescape(a)) str = "C语言中文网" bytes=str.encode() bytes.decode()