simple question:the count of array
sdf
wqh-2 at 263.net
Tue Jul 31 08:44:36 EDT 2001
>>> a=['a','b','c']
>>> b=a.count()
Traceback (most recent call last):
File "<pyshell#9>", line 1, in ?
b=a.count()
TypeError: count() takes exactly 1 argument (0 given)
>>>
then how I get the number of a,I mean how much
values in a,in this case it should be 3
__________________________________________
DVD´óƬ£¬Ò»ÂÉ10Ôª http://shopping.263.net/category02.htm
ÃÀÈÝÑøÑÕ¡¢¼õ·ÊÊÝÉíÃؾ÷ http://shopping.263.net/category10.htm
More information about the Python-list
mailing list