|
@@ -174,9 +174,9 @@ def get_maplef_items(html):
|
|
s = re.sub(r'/([0-9a-z/*.]*?)(png|jpg|gif)', 'img', s)
|
|
s = re.sub(r'/([0-9a-z/*.]*?)(png|jpg|gif)', 'img', s)
|
|
|
|
|
|
s = unicodedata.normalize('NFKC', s) # 中文符号转换成英文
|
|
s = unicodedata.normalize('NFKC', s) # 中文符号转换成英文
|
|
- s = s.replace(",", ",").replace(":", ":").replace(";", ";").replace("“", "'").replace("”", "'"). \
|
|
|
|
- replace("?", "?").replace("!", "!").replace("。", ",").replace("(", "(").replace(")", ")"). \
|
|
|
|
- replace(".", ".").replace("【", "[").replace("】", "]")
|
|
|
|
|
|
+ # s = s.replace(",", ",").replace(":", ":").replace(";", ";").replace("“", "'").replace("”", "'"). \
|
|
|
|
+ # replace("?", "?").replace("!", "!").replace("。", ",").replace("(", "(").replace(")", ")"). \
|
|
|
|
+ # replace(".", ".").replace("【", "[").replace("】", "]")
|
|
|
|
|
|
# tjt修改支持"= ."或"=___."处理
|
|
# tjt修改支持"= ."或"=___."处理
|
|
s = re.sub(r"[==][ _]*\.?$", "等于多少", s)
|
|
s = re.sub(r"[==][ _]*\.?$", "等于多少", s)
|