📌  相关文章
📜  在 python 代码示例上计算平均值

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

代码示例2
>>> 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'