我使用了urllib.parse.unquote
和html.unescape
来预处理我的字符串,但出乎意料的是,我的字符串中有'\xa0'和'\u200e'字符,是否有python函数来为我做最后两个替换,以防我的字符串中有更多这样的字符?你知道吗
# res = res.replace("%20", "")
res = urllib.parse.unquote(res)
# res = res.replace(' ', ' ')
res = html.unescape(res)
res = res.replace('\xa0', '')
res = res.replace('\u200e', '')
目前没有回答
相关问题 更多 >
编程相关推荐