引入必要的包
import re
from collections import Counter
方法一:
# Version One
def get_max_value_v1(text):
# 统一为小写字母
text = text.lower()
# 返回所有的字母
result = re.findall('[a-zA-Z]',text)
# 返回字典的频数
count = Counter(result)
# 获取最大频数
max_value = max(count.values())
# 获取频数最大的字母
max_list = []
for k,v