String 如何使用Levenshtein距离获得两个字符串的匹配状态

String 如何使用Levenshtein距离获得两个字符串的匹配状态,string,matching,levenshtein-distance,String,Matching,Levenshtein Distance,是否可以从两个比较的字符串中获取匹配状态,例如: string 1 : this is a dog. string 2 : this is not a cat. 我如何使用Levenshtein距离生成下面的字符串,有人能帮忙吗 string 1 : this is a dog. string 2 : this is not a cat . Result : ========++++==+++---= <<< like this. 字符串1:这是一

是否可以从两个比较的字符串中获取匹配状态,例如:

string 1 : this is a dog.
string 2 : this is not a cat.
我如何使用Levenshtein距离生成下面的字符串,有人能帮忙吗

string 1 : this is     a    dog.
string 2 : this is not a cat   .
Result   : ========++++==+++---=   <<< like this.
字符串1:这是一只狗。 字符串2:这不是一只猫。
结果:你的问题是什么?有人复制并粘贴该代码作为答案吗?有人写代码作为答案吗?是的,当然!如果可能的话,你可以为我粘贴代码,我需要代码,我将不胜感激。