python fuzzywuzzy包一个可以对字符串进行模糊匹配的。
import fuzzywuzzy as fuzz
1.fuzz.ratio找相似度
fuzz.ratio("this is a test", "this is a test!")
#输出相似度的结果:97
2.
python fuzzywuzzy包一个可以对字符串进行模糊匹配的。
import fuzzywuzzy as fuzz
1.fuzz.ratio找相似度
fuzz.ratio("this is a test", "this is a test!")
#输出相似度的结果:97
2.