📌  相关文章
📜  在python代码示例中如何计算某个值的数量

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

代码示例2
#using the .count() function where the occurence of an element you 
#want to find is the thing in the paranthesis
lista = [1,1,2,3,4,5]
print(lista.count(1))
# will return 2