python中判断字符串中出现次数最多的字母
import stringdef check(text):text = text.lower()return max(string.ascii_lowercase,key=text.count)text = "aabbddd"check(text)print(max(string.ascii_lowercase,key=text.count))
时间:2019-01-29 20:39:34
python中判断字符串中出现次数最多的字母
import stringdef check(text):text = text.lower()return max(string.ascii_lowercase,key=text.count)text = "aabbddd"check(text)print(max(string.ascii_lowercase,key=text.count))
输入字符串 输出字符串中出现次数最多的字母及其出现次数。如果有多个字母出现次数一
2022-02-15
java出现次数最多的字母_java计算给定字符串中出现次数最多的字母和该字
2021-05-29