📜  数组中的多数python代码示例

📅  最后修改于: 2022-03-11 14:45:46.611000             🧑  作者: Mango

代码示例1
l = [1,2,3,4,3,3,2,4,5,6,1,2,3,4,5,1,2,3,4,6,5]
print(max(set(l), key = l.count)) # 3