📜  如何获得 python 列表的中值模式平均值 - Python 代码示例

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

代码示例3
>>> import statistics

>>> statistics.mode([4, 1, 2, 2, 3, 5])
2

>>> statistics.mode([4, 1, 2, 2, 3, 5, 4])
4

>>> statistics.mode(["few", "few", "many", "some", "many"])
'few'