单次分析python算法
list1 = list(input())
list2 = []
num,word=0,None
for temp in list1: #将list1中元素不重复的存在list2中
if temp not in list2:
list2.append(temp)
list2 = sorted(list2) #将list2中元素排序
for temp in list2:
if num < list1.count(temp):
num = list1.count(temp)#计数
word = temp
print(word)
print(num)