一个最简单的方法:

lst = ['小李', '小张', '小王', '小张', '小杜', '小杜', '小袁', '小张']
print(max(lst, key=lst .count))

 

相关文章: