V2EX  ›  英汉词典

Indentation

释义 Definition

名词 (n.) 缩进;缩排;凹痕;凹口。常用于指文本排版中每行开头的空格缩进,也可指物体表面的凹陷或锯齿状的切口。

发音 Pronunciation

/ˌɪn.denˈteɪ.ʃən/

例句 Examples

Please check the indentation of your code before submitting it.
请在提交代码之前检查你的代码缩进。

Proper indentation not only makes the source code more readable but also, in languages like Python, determines how the program actually executes.
正确的缩进不仅能使源代码更具可读性,而且在 Python 等语言中,缩进还决定了程序的实际执行方式。

词源 Etymology

该词源于拉丁语 indentare,由 in-(向内)和 dens(牙齿)组成,字面意思是"像牙齿一样刻入"。最初在中世纪英语中,indent 指在文件边缘剪出锯齿状的缺口,用来验证契约的真实性(两份文件的锯齿必须吻合)。后来词义扩展,泛指任何形式的缩进或凹陷。加上名词后缀 -ation 构成 indentation,表示缩进的动作或状态。

关联词 Related Words

文学作品引用 Literary References

  • 在 Robert C. Martin 的 Clean Code 中,indentation 被反复强调为编写可读代码的基本原则之一,作者认为一致的缩进风格是专业程序员的标志。
  • 在 Donald Knuth 的 The Art of Computer Programming 中,排版与 indentation 的规范被视为算法表达清晰性的重要组成部分。
  • 在印刷与排版领域的经典著作 Robert Bringhurst 的 The Elements of Typographic Style 中,indentation 作为段落标记的传统手法被详细讨论。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2606 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 04:13 · PVG 12:13 · LAX 21:13 · JFK 00:13
♥ Do have faith in what you're doing.