📜  python 查找字符串中的重复项 - Python 代码示例

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

代码示例1
from collections import Counter

def do_find_duplicates(x):
    x =input("Enter a word = ")
    for key,val in Counter(x).items():
        print(key,val)