V2EX  ›  英汉词典

Stdin

定义 Definition

stdinstandard input(标准输入) 的缩写,指程序默认读取输入数据的来源(通常是键盘输入或管道/重定向传来的数据)。在许多编程语言与操作系统环境中,stdin 与 stdout(标准输出)stderr(标准错误) 并称为三大标准流。

发音 Pronunciation

/ˌstændərd ˈɪnpʊt/(对应 standard input 的常见读法)

例句 Examples

The program reads a line from stdin.
程序从标准输入读取一行。

When stdin is redirected from a file, the script can process thousands of records automatically.
当标准输入被从文件重定向时,脚本就能自动处理成千上万条记录。

词源 Etymology

stdin 来自 standard input 的缩写形式:**std-**(standard,标准的)+ in(input,输入)。这一命名与早期类 Unix 系统及 C 语言的“标准流(standard streams)”约定紧密相关,用于统一程序输入输出接口,便于管道(pipe)与重定向(redirection)等机制工作。

相关词 Related Words

文献与作品 Literary Works

  • The C Programming Language(Kernighan & Ritchie)
  • Advanced Programming in the UNIX Environment(W. Richard Stevens)
  • The Linux Programming Interface(Michael Kerrisk)
  • UNIX Network Programming(W. Richard Stevens)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2144 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 116ms · UTC 09:46 · PVG 17:46 · LAX 01:46 · JFK 04:46
♥ Do have faith in what you're doing.