第一题分词ac了,求问第二题格式化咋做 import sys import re def my_split(line, words): pattern1 = re.compile('(' + '|'.join(words) + ')') array1 = re.split(pattern1, line) return array1 def segment(sent, words): line = sent.replace(' ','') sent_list = sent.split() pattern1 = re.compile( '(...