输出一串字符串中出现最多的字符
class Solution:
def match(s):
q = list()
m = list(s)
e = list(s)
c = 1
t = 1
for i in range(len(s) - 1):
if s[i] == s[i + 1]:
t += 1
m[t] = s[i]
else:
c = max(t, c)
t = 1
for u in range(len(s)-1):
for i in range(len(s)-1):
if s[i] == s[i+1] :
t += 1
m[t] = s[i]
else:
t = 1
if m[c] not in q:
q.append(m[c])
return q
print((match(input())))