🌈 搜索
📅  最后修改于: 2022-03-11 14:46:24.297000             🧑  作者: Mango
words = sentence.split() counts = {} for word in words: if word not in counts: counts[word] = 0 counts[word] += 1