From 2a4483f4dc07a611104a5f305d106fd6c7dce6be Mon Sep 17 00:00:00 2001 From: hannoch Date: Tue, 11 Oct 2022 17:38:13 +0800 Subject: [PATCH] =?UTF-8?q?minor:=E8=BF=87=E6=BB=A4=E9=99=A4=E4=B8=AD?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E5=8F=8A=E6=95=B0=E5=AD=97=E4=BB=A5=E5=A4=96?= =?UTF-8?q?=E7=9A=84=E5=85=B6=E4=BB=96=E5=AD=97=E7=AC=A6=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E9=80=A0=E5=90=8E=E4=BF=9D=E6=8C=81=E5=88=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TikTokMulti.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TikTokMulti.py b/TikTokMulti.py index 42db059..c0b2f00 100644 --- a/TikTokMulti.py +++ b/TikTokMulti.py @@ -150,7 +150,8 @@ def replaceT(self, obj): @Returns : n 处理后的内容 ------- """ - r = r"[\/\\\:\*\?\"\<\>\|]" # '/ \ : * ? " < > |' + # 过滤除中英文及数字以外的其他字符 + r = r"[^\u4e00-\u9fa5^a-z^A-Z^0-9^#]" # '/ \ : * ? " < > |' if type(obj) == list: new = [] for i in obj: