python 一个字符串中重复最多的字母

import string
def getmostCharacter(data_str):
data_str = data_str.lower()
return max(string.ascii_lowercase, key=data_str.count)

你可能感兴趣的:(python 一个字符串中重复最多的字母)