GOOD_N_LCM  
from fuzzywuzzy import fuzz
from fuzzywuzzy import process

# 简单匹配度
a = fuzz.ratio("this is a test", "this is a test!")
print(a)

# 模糊匹配度
b = fuzz.partial_ratio("this is a test", "this is a test!")
print(b)

  

posted on 2020-11-20 14:33  GOOD_N_LCM  阅读(92)  评论(0编辑  收藏  举报