我正在尝试找到一种Python 方法来区分字符串。我知道,difflib但我一直没能找到一个内联模式,它的功能与这个 JS 库的功能类似(插入为绿色,删除为红色):
difflib
one_string = "beep boop" other_string = "beep boob blah"
有办法实现这一点吗?
python diff
diff ×1
python ×1