generate_id_set功能先处理了标点符号
This commit is contained in:
parent
0af4a28a1c
commit
6ef90a07b7
|
|
@ -207,6 +207,7 @@ def generate_classid(string): #返回班级列表
|
||||||
|
|
||||||
|
|
||||||
def generate_id_set(string,*thedict): #除了生成题号列表外, 还能根据首字母生成基础知识编号列表或课时目标列表
|
def generate_id_set(string,*thedict): #除了生成题号列表外, 还能根据首字母生成基础知识编号列表或课时目标列表
|
||||||
|
string = RefinePunctuations(string)
|
||||||
if re.findall(r"[BXK]",string) == []:
|
if re.findall(r"[BXK]",string) == []:
|
||||||
if thedict == ():
|
if thedict == ():
|
||||||
return generate_number_set(string)
|
return generate_number_set(string)
|
||||||
|
|
|
||||||
Reference in New Issue