import sys #for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) s = input() dict1 = {} #利用字典统计i出现的次数 for i in s: if i not in dict1: dict1[i]=1 else: dict1[i]+=1 #dict_items([('a', 2), ('b', 1), ('c', 1), ('d', 3)]) 格式如下,以元组的形式存放的列表, #对字符出现的次数进行...