标签:
元组的用法和列表相似就不一一介绍了
# real signature unknown; restored from __doc__
""" L.append(object) -- append object to end """
pass
# real signature unknown; restored from __doc__
""" L.count(value) -> integer -- return number of occurrences of value """
return 0
# real signature unknown; restored from __doc__
""" L.extend(iterable) -- extend list by appending elements from the iterable """
pass
# real signature unknown; restored from __doc__
"""
L.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
"""
return 0
# real signature unknown; restored from __doc__
""" L.insert(index, object) -- insert object before index """
pass
# real signature unknown; restored from __doc__
"""
L.pop([index]) -> item -- remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
"""
pass
# real signature unknown; restored from __doc__
"""
L.remove(value) -- remove first occurrence of value.
Raises ValueError if the value is not present.
"""
pass
# real signature unknown; restored from __doc__
""" L.reverse() -- reverse *IN PLACE* """
pass
数字按照大小比较
中文按照unicode比较
# real signature unknown; restored from __doc__
"""
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
cmp(x, y) -> -1, 0, 1
"""
pass
# real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
# real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
# real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
# real signature unknown; restored from __doc__
"""
x.__delslice__(i, j) <==> del x[i:j]
Use of negative indices is not supported.
"""
pass
# real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
# real signature unknown; restored from __doc__
""" x.__getattribute__(‘name‘) <==> x.name """
pass
# real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
# real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
# real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
# real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
# real signature unknown; restored from __doc__
""" x.__iadd__(y) <==> x+=y """
pass
# real signature unknown; restored from __doc__
""" x.__imul__(y) <==> x*=y """
pass
# known special case of list.__init__
"""
list() -> new empty list
list(iterable) -> new list initialized from iterable‘s items
# (copied from class doc)
"""
# real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
# real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
# real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
# real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
# real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
: # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
# real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
# real signature unknown; restored from __doc__
""" L.__reversed__() -- return a reverse iterator over the list """
pass
# real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
# real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
# real signature unknown; restored from __doc__
"""
x.__setslice__(i, j, y) <==> x[i:j]=y
Use of negative indices is not supported.
"""
pass
# real signature unknown; restored from __doc__
""" L.__sizeof__() -- size of L in memory, in bytes """
pass
__hash__ = None
标签:
原文地址:http://www.cnblogs.com/bj-xy/p/5185006.html