输入ok
Structure
fn · h1main
comment
bind
`名字` = > 输入 提示=名字:call
> 打印 内容=你好 `名字`!Functions
Variables
-
名字 text小明小明
Execution
Demo stdin (static export cannot re-run interactively); prompts: 名字:
小明
名字:你好 小明!
Source
--- title: 内置 输入 description: 从 stdin 读一行;可选提示。演示数据写在 frontmatter 输入。 输入: 小明 --- # main 内置「输入」读一行。演示与 marqdo view / 静态导出可在 frontmatter 写「输入:」(或 stdin:)。CLI 也可用管道或 --stdin-file。Live view 可用 Preset input 覆盖。 **`名字` = > 输入 提示="名字:"** > 打印 内容=你好 `名字`!
内置「输入」读一行。演示与 marqdo view / 静态导出可在 frontmatter 写「输入:」(或 stdin:)。CLI 也可用管道或 --stdin-file。Live view 可用 Preset input 覆盖。