V2EX  ›  英汉词典
Enqueued related words: Immutable

Tuple

定义 Definition

tuple(元组):一组按固定顺序排列的元素的集合,常用于数学与计算机科学中表示“有序组”(如坐标、记录等)。在编程里,tuple 往往指不可变的序列类型(不同语言略有差异)。

发音 Pronunciation

/ˈtʌpəl/

例句 Examples

A point on the plane can be written as a tuple like (3, 5).
平面上的一个点可以写成像 (3, 5) 这样的元组。

In the database, each row is a tuple containing values for every column, which makes it easy to query and compare records.
在数据库中,每一行都是一个包含各列取值的元组,这使得查询和比较记录变得很方便。

词源 Etymology

tuple 来自拉丁语 -plus(“倍、重”)的构词模式,经由英语中 double(双)/triple(三)/quadruple(四) 等词的影响,逐渐形成可类推的结尾 -tuple,表示“几重、几元”。后来在数学与计算机领域中被推广,用来指“由若干个元素组成的有序组”(如 n-tuple)。

相关词 Related Words

文学作品 Literary Works

  • Lewis Carroll,《Alice’s Adventures in Wonderland》:出现 double(与 -tuple 同源构词体系相关,用于表示“成双”之意)。
  • George Orwell,《Nineteen Eighty-Four》:出现 double(同上,作为常用词出现;与 tuple 的词源构词背景相连)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2453 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 12:17 · PVG 20:17 · LAX 04:17 · JFK 07:17
♥ Do have faith in what you're doing.