统计某个元素在列表中出现的次数。
list.count(sub,start=0,end=len(string))
def test(): arr=["a","a","b","b","c","c"] print(arr.count("a"))