📅  最后修改于: 2022-03-11 14:47:03.753000             🧑  作者: Mango
>>> 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'