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