Python: Get the Mode of One List
作者:XD / 发表: 2023年2月24日 00:17 / 更新: 2023年2月24日 00:17 / 编程笔记 / 阅读量:534
Python: Get the Mode of One List.
from statistics import mode
lst = [1, 3, 2, 3, 1, 2, 3]
print(mode(lst))
# 3
相关标签
Python: Get the Mode of One List.
from statistics import mode
lst = [1, 3, 2, 3, 1, 2, 3]
print(mode(lst))
# 3
本站现有博文240篇,共被浏览280591次
本站已经建立1751天!