generate_id_set功能先处理了标点符号

This commit is contained in:
wangweiye7840 2024-04-15 10:48:01 +08:00
parent 0af4a28a1c
commit 6ef90a07b7
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ def generate_classid(string): #返回班级列表
def generate_id_set(string,*thedict): #除了生成题号列表外, 还能根据首字母生成基础知识编号列表或课时目标列表
string = RefinePunctuations(string)
if re.findall(r"[BXK]",string) == []:
if thedict == ():
return generate_number_set(string)