控制台
4 个节点
本页内容 4
打印
函数Print text without ending the line: whatever is printed next continues it.
打印(消息: 文本)
void Write(string message)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 消息 | 文本 | — |
备注
For a prompt answered on the same line - Print "Name: ", then Read Line - or one line built from several pieces. In the editor's console dock consecutive Prints make one line, a read that follows one shows its input row after what was printed, and a line still open when the run ends is the console's last line. Under stew, or as a program of its own, the text goes to standard output as it is printed.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 控制台
- 所属包
- 平台
打印值
函数Print any value on a line of its own; a list or an array prints one item per line.
打印值(对象: 任意)
void Print(object object)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 对象 | 任意 | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 控制台
- 所属包
- 平台
打印一行
函数此节点没有文档说明。
打印一行(消息: 文本)
void PrintLine(string message)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 消息 | 文本 | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 控制台
- 所属包
- 平台
读取一行
函数Read the next line of text typed for the program, without its line break; nothing (null) once there is no more input.
读取一行() -> 文本
string ReadLine()
返回
| 结果 | 文本 |
备注
In the editor the console dock asks for the line and the run waits for it - Enter sends it, Ctrl+D ends the input, and Stop answers end of input; Shift+Enter starts another line, and several lines sent at once answer one read each, in turn. Under stew, or as a program of its own, the line comes from standard input: the terminal, or whatever was redirected into it.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 控制台
- 所属包
- 平台