📜  如何在atext python代码示例中找到2个相似的词

📅  最后修改于: 2022-03-11 14:46:24.297000             🧑  作者: Mango

代码示例1
words = sentence.split()
counts = {}
for word in words:
    if word not in counts:
        counts[word] = 0
    counts[word] += 1