📌  相关文章
📜  计算字符串中的重复字符python代码示例

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

代码示例2
count = {}
for s in check_string:
  if s in count:
    count[s] += 1
  else:
    count[s] = 1

for key in count:
  if count[key] > 1:
    print key, count[key]