英文字典中文字典


英文字典中文字典51ZiDian.com



中文字典辞典   英文字典 a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z       







请输入英文单字,中文词皆可:

tuple    
元组

元组

tuple
有序n 元; n 重序元


tuple
n 倍; n 元组; n 元数; n 元向量


tuple
重元组

tuple


In {functional languages}, a data object containing two or
more components. Also known as a product type or pair,
triple, quad, etc. Tuples of different sizes have different
types, in contrast to lists where the type is independent of
the length. The components of a tuple may be of different
types whereas all elements of a list have the same type.
Examples of tuples in {Haskell} notation are (1,2),
("Tuple",True), (w,(x,y),z). The degenerate tuple with zero
components, written (), is known as the unit type since it has
only one possible value which is also written ().

The implementation of tuples in a language may be either
"{lifted}" or not. If tuples are lifted then (bottom,bottom)
/= bottom and the evaluation of a tuple may fail to terminate.
E.g. in Haskell:

f (x,y) = 1 --> f bottom = bottom
f (bottom,bottom) = 1

With lifted tuples, a tuple pattern is refutable. Thus in
Haskell, {pattern matching} on tuples is the same as pattern
matching on types with multiple constructors ({algebraic data
types}) - the expression being matched is evaluated as far as
the top level constructor, even though, in the case of tuples,
there is only one possible constructor for a given type.

If tuples are unlifted then (bottom, bottom) = bottom and
evaluation of a tuple will never fail to terminate though any
of the components may. E.g. in {Miranda}:

f (x,y) = 1 --> f bottom = 1
f (bottom,bottom) = 1

Thus in Miranda, any object whose type is compatible with a
tuple pattern is assumed to match at the top level without
evaluation - it is an {irrefutable} pattern. This also
applies to user defined data types with only one constructor.
In Haskell, patterns can be made irrefutable by adding a "~"
as in

f ~(x,y) = 1.

If tuple constructor functions were {strict} in all their
arguments then (bottom,x) = (x,bottom) = bottom for any x so
matching a refutable pattern would fail to terminate if any
component was bottom.


请选择你想看的字典辞典:
单词字典翻译
Tuple查看 Tuple 在百度字典中的解释百度英翻中〔查看〕
Tuple查看 Tuple 在Google字典中的解释Google英翻中〔查看〕
Tuple查看 Tuple 在Yahoo字典中的解释Yahoo英翻中〔查看〕





安装中文字典英文字典查询工具!


中文字典英文字典工具:
选择颜色:
输入中英文单字

































































英文字典中文字典相关资料:


  • Python 元组tuple详解(超详细) - 知乎
    Python内置函数 方法详解—元组tuple元组是 有序且不可更改的集合。 在Python中,元组使用圆括号 () 编写的。 1、创建元组元组的创建很简单,使用圆括号 () 直接创建或者使用 tuple () 函数创建,只需要在圆括号中添…
  • Python 元组 - 菜鸟教程
    Python2 x Python 元组 Python 的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方括号。 元组创建很简单,只需要在括号中添加元素,并使用逗号隔开即可。 如下实例:
  • Tuple - Wikipedia
    Tuple In mathematics, a tuple is a finite sequence (or ordered list) of numbers More generally, it is a sequence of mathematical objects, called the elements of the tuple An n-tuple is a tuple of n elements, where n is a non-negative integer There is only one 0-tuple, called the empty tuple
  • Python Tuples - W3Schools
    Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage
  • Python 元组tuple详解(超详细)_python tuple-CSDN博客
    还探讨了元组与其他数据结构的区别,并列举了内置函数如print ()、len ()、type ()、tuple ()、max ()、min ()和del在元组上的应用。 此外,还讲解了count ()和index ()方法。
  • Python Tuple: How to Create, Use, and Convert
    Learn how to create a Python tuple, how to use tuples, how to convert them to lists and strings, and how tuples differ from lists and sets
  • Python Tuples - GeeksforGeeks
    We can access the elements of a tuple by using indexing and slicing, similar to how we access elements in a list Indexing starts at 0 for the first element and goes up to n-1, where n is the number of elements in the tuple
  • tuple | Python’s Built-in Data Types – Real Python
    The built-in tuple data type provides an immutable sequence of values that can store any data type Tuples are useful for storing heterogeneous data, such as records in a database or fixed collections of items:
  • Python Tuple (With Examples) - Programiz
    Python Tuple A tuple is a collection similar to a Python list The primary difference is that we cannot modify a tuple once it is created





中文字典-英文字典  2005-2009