2011年4月12日 星期二

計算list(串列)數量

list.count(x)

計算得串列中x的數量

len(list)
取得串列中的元素的數量

參考來源:易記學