相关文章推荐
瘦瘦的橙子  ·  用VS ...·  2 年前    · 
大鼻子的荒野  ·  How to check if a ...·  3 年前    · 
print "Count for 123 : ", aList.count(123); print "Count for zara : ", aList.count('zara');

以上实例输出结果如下:

Count for 123 : 2 Count for zara : 1

Python 列表 Python 列表