你可以用
difflib.SequenceMatcher
找出两个字符串的相似性。
import difflib
Field1 = """I wear a women's size 8 in every other shoes brand
Always been a lifelong fan of Birkenstock...
The wife loves them
My daughter loves them.
My daughter loves them! Very comfy"""
Field2 = """i wear women's size 8 every shoes brand decided order size based everyone's review. the size 7-7.5/38 r fits perfectly.
always lifelong fan birkenstock sandals suede straps...
the wife loves
She wears them all year round - with and without socks.
my daughter loves them! very comfy"""
s = difflib.SequenceMatcher(None, Field1, Field2).ratio()
print ("ratio:", s, "\n")
# ratio: 0.312