V2EX  ›  英汉词典

Empty String

释义 Definition

empty string:空字符串;在计算机与编程语境中指长度为 0 的字符串,通常写作 ""。它与包含空格的字符串(如 " ")不同。该术语也可泛指“没有任何字符的文本值”。

发音 Pronunciation (IPA)

/ˈɛmpti strɪŋ/

例句 Examples

The input is an empty string.
输入是一个空字符串。

If the function receives an empty string, it returns a default value instead of attempting to parse it.
如果函数收到空字符串,它会返回一个默认值,而不是尝试解析它。

词源 Etymology

empty(空的)+ string(字符串)组成的组合词。在早期计算机科学与编程语言描述中常用来区分“没有字符”的字符串值与其他情况(例如仅包含空格、或值为 null/None 的“无值”)。

相关词 Related Words

文学与经典作品 Literary Works

  • The C Programming Language(Kernighan & Ritchie):在讲解 C 字符串(以 '\0' 结尾)与边界条件时常涉及“空字符串”的概念。
  • *Structure and Interpretation of Computer Programs (SICP)*:在讲解符号与序列处理时会遇到“空序列/空字符串”之类的边界情形。
  • The Practice of Programming(Kernighan & Pike):讨论输入处理、健壮性与边界测试时常提及包括空字符串在内的特殊输入。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   887 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 18:02 · PVG 02:02 · LAX 10:02 · JFK 13:02
♥ Do have faith in what you're doing.