python3解码utf-8 escape字符串
摘要:如果遇到 '\\xe4\\xb8\\xad\\xe5\\x9b\\xbd' 这样的utf-8 escape字符串,并且不是在代码里,而是从别的地方获取的,无法更改,就需要特殊的解码方式 在python2中,可以直接用decode("string_escape")解决,但是python3中str类型无
阅读全文
posted @ 2020-03-15 14:45
posted @ 2020-03-15 14:45
posted @ 2019-04-25 18:39