我的Python正则表达式处理组在处理重音表达式时遇到了问题。 当我运行代码时:
import re
title = ur"Titre : c'est pas gréable à Infos:"
print title
m = re.findall(":(.+?) Infos",title , re.UNICODE)
print unicode((m))
我有一个结果:
Titre : c'est pas gréable à Infos:
[u" c'est pas gr\xe9able \xe0"]
我需要能够保持重音表达式在结果输出。 谢谢你的帮助
试试这个:
相关问题 更多 >
编程相关推荐