from collections import Counter
data = list(input("请输入字符串:").split(','))
# data = ['hello','world','www','aaabbb']
for i in data:
res = Counter(i)
# Counter()为计数器,返回Counter类型,可以使用dict转化成字典类型
# print(type(res))
#类型: Counter({'a': 3, 'g': 3, 'c': 2, 'f': 2, 'b': 1})
# print(res)
max_len = 0
for key in res:
# print(key),key为键
if max_lenn/2:
data.remove(i)
# 把重复次数大于字符串字数的删除掉
print(data)



