V2EX  ›  英汉词典

One-based

定义 Definition

one-based(形容词):指从 1 开始计数或编号的规则,最常见于数学、表格、数据库与编程语境中,如“one-based indexing(从 1 开始的索引)”。(在某些领域也可与“从 0 开始”的规则作对比。)

发音 Pronunciation

/ˌwʌn ˈbeɪst/

例句 Examples

In this spreadsheet, rows are one-based, so the first row is row 1.
在这个电子表格里,行号是从 1 开始的,所以第一行是第 1 行。

The API uses one-based indexing for page numbers, which can confuse developers used to zero-based arrays.
这个 API 的页码采用从 1 开始的索引,这可能会让习惯从 0 开始数组的开发者感到困惑。

词源 Etymology

one(1)+ based(以……为基础的)构成,字面意思是“以 1 为起点/基准”。在技术写作中常与 indexing(索引)numbering(编号)搭配,用来明确计数从 1 而非从 0 开始。

相关词 Related Words

文学与著作中的用例 Literary Works

  • The Art of Computer Programming(Donald E. Knuth):在算法与数学式表述中常见以 1 为起点的编号/索引习惯。
  • Introduction to Algorithms(Cormen, Leiserson, Rivest, Stein):部分伪代码与数组下标约定常采用从 1 开始的写法(不同版本/章节可能有所变化)。
  • Numerical Recipes(Press 等):在科学计算与数组/下标讨论中会涉及不同起始索引约定(包括 one-based 的表述)。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4445 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 05:33 · PVG 13:33 · LAX 22:33 · JFK 01:33
♥ Do have faith in what you're doing.