python 从一系列字符串中,找出频率最高的字符串

来源:互联网 发布:未闻花名但知花香出处 编辑:程序博客网 时间:2024/05/16 06:20

from collections import Counter

def most_frequent(data):

    return Counter(data).most_common()[0][0]
阅读全文
0 0
原创粉丝点击