Kenn
Results
1
issues of
Kenn
1. 在python3中使用fast_cut出现decode error错误,问题定位在 manage/SoExtention.py 的 line29 :return s.value.decode('utf-8')。排查原因发现是line 26:self._lib.freeResult();执行后,s.value乱码,不再是utf8。提前保存s.value.decode('utf-8'),再执行self._lib.freeResult();,然后返回提前保存的值,可解决。 2. __init__.py中,line 100:array += (reduce(lambda x, y: x + [[y[0], y[2]]], cut_method(line), [])) 当cut_method为__fast_cutline的时候,[y[0], y[2]]捕获的是第一个和第三个字,而非期望的下划线两边的词。