有没有办法将\x转义字符串转换"\\xe8\\xaa\\x9e\\xe8\\xa8\\x80"为可读形式:"??"?
\x
"\\xe8\\xaa\\x9e\\xe8\\xa8\\x80"
"??"
>>> a = "\\xe8\\xaa\\x9e\\xe8\\xa8\\x80" >>> print(a) \xe8\xaa\x9e\xe8\xa8\x80
我知道,有一个类似的问题在这里,但似乎该解决方案仅适用于拉丁字符。如何将这种形式的字符串转换为可读的 CJK 字符?
python unicode encoding utf-8
encoding ×1
python ×1
unicode ×1
utf-8 ×1