在Python 中怎么表示一个元素在一个list中的数量?

commonest = [1,2,2,2,1,3,4,5,1,1]

print(commonest.count(1))
原文地址:https://www.cnblogs.com/johnson-yuan/p/7910111.html