python fuzzywuzzy模块的函数应用

来源:互联网 发布:程序员交流圈 编辑:程序博客网 时间:2024/05/23 13:28

python fuzzywuzzy包一个可以对字符串进行模糊匹配的。
import fuzzywuzzy as fuzz
1.fuzz.ratio找相似度

fuzz.ratio("this is a test", "this is a test!")#输出相似度的结果:97

2.

原创粉丝点击