网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 HEREDOC
释义

HEREDOC

中文百科

Here文档 Here document

(重定向自HEREDOC)

here文档,又称作heredochereishere-字串here-脚本,是一种在命令行shell(如sh、csh、ksh、bash、PowerShell和zsh)和进程语言(像Perl、PHP、Python和Ruby)里定义一个字串的方法。它可以保存文本里面的换行或是缩进等空白字符。一些语言允许在字串里执行变量替换和命令替换。

here文档最通用的语法是<<紧跟一个标识符,从下一行开始是想要引用的文本,然后再在单独的一行用相同的标识符关闭。在Unix shell里,here文档通常用于给命令提供输入内容。

英语百科

Here document Here文档

(重定向自HEREDOC)

In computing, a here document (here-document, heredoc, hereis, here-string or here-script) is a file literal or input stream literal: it is a section of a source code file that is treated as if it were a separate file. The term is also used for a form of multiline string literals that use similar syntax, preserving line breaks and other whitespace (including indentation) in the text.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/19 1:19:36