📜  检查字符串中的双字符 python 代码示例

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

代码示例1
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]