V2EX  ›  英汉词典

Expected Output

定义 Definition

“expected output” 指预期输出:在程序运行、测试用例或题目评测中,按照规格/题意应该产生的正确输出结果(常用于对比“实际输出 actual output”以判断是否正确)。

发音 Pronunciation (IPA)

/ɪkˈspɛktɪd ˈaʊtpʊt/

例句 Examples

Please compare your program’s output with the expected output.
请把你程序的输出与预期输出进行对比。

If the actual output differs from the expected output, review the requirements and check for edge cases.
如果实际输出与预期输出不同,请回头核对需求,并检查边界情况。

词源 Etymology

expected 来自 expect(“期待、预料”),output 来自 out(“向外”)+ put(“放置”),合起来就是“被预期会输出的结果”。该短语在计算机科学与软件测试语境中非常常见,用来强调“标准答案/应有结果”。

相关词 Related Words

文学与作品 Literary Works

该短语更常见于技术写作与编程教材/文档(而非传统小说诗歌),例如在讲解练习题、示例程序与测试时用于标注“正确应输出什么”:

  • The C Programming Language(Kernighan & Ritchie)
  • Structure and Interpretation of Computer Programs(Abelson & Sussman)
  • Automate the Boring Stuff with Python(Al Sweigart)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2917 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
♥ Do have faith in what you're doing.