美文网首页
元组tuple函数

元组tuple函数

作者: ljZhang416 | 来源:发表于2017-07-18 18:12 被阅读0次
lass tuple(object):
    """
    tuple() -> empty tuple
    tuple(iterable) -> tuple initialized from iterable's items
    
    If the argument is a tuple, the return value is the same object.
    """
    def count(self, value): # real signature unknown; restored from __doc__
        """ T.count(value) -> integer -- return number of occurrences of value """
        return 0

    def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__
        """
        T.index(value, [start, [stop]]) -> integer -- return first index of value.
        Raises ValueError if the value is not present.
        """
        return 0

    def __add__(self, y): # real signature unknown; restored from __doc__
        """ x.__add__(y) <==> x+y """
        pass

    def __contains__(self, y): # real signature unknown; restored from __doc__
        """ x.__contains__(y) <==> y in x """
        pass

    def __eq__(self, y): # real signature unknown; restored from __doc__
        """ x.__eq__(y) <==> x==y """
        pass

    def __getattribute__(self, name): # real signature unknown; restored from __doc__
        """ x.__getattribute__('name') <==> x.name """
        pass

    def __getitem__(self, y): # real signature unknown; restored from __doc__
        """ x.__getitem__(y) <==> x[y] """
        pass

    def __getnewargs__(self, *args, **kwargs): # real signature unknown
        pass

    def __getslice__(self, i, j): # real signature unknown; restored from __doc__
        """
        x.__getslice__(i, j) <==> x[i:j]
                   
                   Use of negative indices is not supported.
        """
        pass

    def __ge__(self, y): # real signature unknown; restored from __doc__
        """ x.__ge__(y) <==> x>=y """
        pass

    def __gt__(self, y): # real signature unknown; restored from __doc__
        """ x.__gt__(y) <==> x>y """
        pass

    def __hash__(self): # real signature unknown; restored from __doc__
        """ x.__hash__() <==> hash(x) """
        pass

    def __init__(self, seq=()): # known special case of tuple.__init__
        """
        tuple() -> empty tuple
        tuple(iterable) -> tuple initialized from iterable's items
        
        If the argument is a tuple, the return value is the same object.
        # (copied from class doc)
        """
        pass

    def __iter__(self): # real signature unknown; restored from __doc__
        """ x.__iter__() <==> iter(x) """
        pass

    def __len__(self): # real signature unknown; restored from __doc__
        """ x.__len__() <==> len(x) """
        pass

    def __le__(self, y): # real signature unknown; restored from __doc__
        """ x.__le__(y) <==> x<=y """
        pass

    def __lt__(self, y): # real signature unknown; restored from __doc__
        """ x.__lt__(y) <==> x<y """
        pass

    def __mul__(self, n): # real signature unknown; restored from __doc__
        """ x.__mul__(n) <==> x*n """
        pass

    @staticmethod # known case of __new__
    def __new__(S, *more): # real signature unknown; restored from __doc__
        """ T.__new__(S, ...) -> a new object with type S, a subtype of T """
        pass

    def __ne__(self, y): # real signature unknown; restored from __doc__
        """ x.__ne__(y) <==> x!=y """
        pass

    def __repr__(self): # real signature unknown; restored from __doc__
        """ x.__repr__() <==> repr(x) """
        pass

    def __rmul__(self, n): # real signature unknown; restored from __doc__
        """ x.__rmul__(n) <==> n*x """
        pass

    def __sizeof__(self): # real signature unknown; restored from __doc__
        """ T.__sizeof__() -- size of T in memory, in bytes """
        pass

tuple

相关文章

  • 元组tuple函数

  • Python基础--列表、元组、字典(个人笔记)

    list与tuple 区别 tuple无法进行元组内的修改(可以两个元组拼接),没有append()等函数,相对于...

  • 元组 tuple

    元组 (tuple) 是一种不可变序列类型。 创建元组 1 、tuple()函数 2 (元素1,元素2,元素3.....

  • 元组与列表之间的转换

    1、将元组转换为列表用list函数例如: 2、将列表转换为元组用tuple函数例如:

  • 四:Python序列之元组

    一:元组的概念 tuple(元组):属于不可变序列,不能修改元组中的元素,因此,元组没有增删改的方法函数 元组支持...

  • day006 笔记

    方法 函数 元组(tuple) tuple一旦初始化就不能修改。改、增、删相关操作不能作用于元祖。 创建空元组。 ...

  • Python元组

    1 元组基础 1.1 创建元组 通过()或工厂函数tuple()创建元组 元组是有序的、不可变类型 与列表类似,作...

  • python内置数据结构list、set、dict、tuple(

    关于列表的函数 元组-tuple 元组可以看成是一个不可更改的list 元组创建 元组的特性 是序列表,有序 元组...

  • 一 -20 python (基础)元组常用操作

    元组(tuple)=========元素不能修改 序号 分类 关键字 / 函数 / 方法 ...

  • typescript笔记(十)

    一、元组:元组中允许存储不同类型的元素,元组可以作为参数传递给函数。 1)、语法: let tuple_name ...

网友评论

      本文标题:元组tuple函数

      本文链接:https://www.haomeiwen.com/subject/ibbhkxtx.html