This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我编写了一个在两个 HTML 源代码之间进行区分的 Python 模块。我在比较文本时遇到了一点问题——difflib.SequenceMatcher即使只有一个字符相似,该函数也会将文本确定为“相等”。因此,像“123456”和“abc1de”这样的生成值将归类为插入的“abc”,等于 1=1 并在 de 中替换了 23456。