def RMMuser_dict sentence segment_words = max_len = maxlenitem for item in user_dict # 获取词典中词语的最大长度 end = lensentence while end 0 start = end - max_len if end - max_len 0 else 0
['时间', '就', '是', '⽣命']
原文地址: https://www.cveoy.top/t/topic/bEW8 著作权归作者所有。请勿转载和采集!