l=[1,1,1,2,2,2,3,3,3,4]total=len(l) #l总共的元素个数e=1howmany=l.count(e) #e在l中的个数where=[i for i in range(len(l)) if l[i]==e] #e在l中的下标