关于tuple的概念

 

1)、C++中的tuple概念:Tuples 是大小固定的异构对象集合,它正在被添加到 C++ 标准。但是目前<tulpe>库还并不一定是标准库的一部分。因此,要想使用这个库必须到 Boost 下载并安装。tuple的使用介绍可参考这里[ http://www.vckbase.com/document/viewdoc/?id=1366 ]

 

2)、Python中的tuple的概念: Tuple 是不可变的 list。一旦创建了一个 tuple,就不能以任何方式改变它。

 

3)tuple 维基百科中的说明【http://en.wikipedia.org/wiki/Tuple

In mathematics and computer science, a tuple is an ordered list of elements. In set theory, an (ordered) n-tuple is a sequence (or ordered list) of n elements, where n is a positive integer. There is also one 0-tuple, an empty sequence. An n-tuple is defined inductively using the construction of an ordered pair. Tuples are usually written by listing the elements within parentheses '( )' and separated by commas; for example, (2, 7, 4, 1, 7) denotes a 5-tuple.

 

 

4)查字典

tuple 名词 n.

1.元组,数组

2.重数

3. 组

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值