行
Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.
Reads one line of input.
Syntax: 读取 行
Category#
io
Related#
Examples#
radix/corpus/lineam/lineam.fab (canonical · keyword)#
Reads one line of input.
# =============================================================================
# 行 — Reads one line of input.
# =============================================================================
#
# What this teaches:
# • line-oriented input mode — `读取 行` reads a single line from stdin
#
# Common mistakes:
# • Confusing 行 (reads one line without trailing newline) with 显示 (writes diagnostic output with newline).
#
# See also: 读取
# =============================================================================
# 行 — line-oriented 读取 read
#
# GRAMMAR:
# readMode :← '读取' '行'
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
# BACKEND:
# Rust/Go/roundtrip whitelist like 读取/lege.fab.
#
main {
print "lineam exemplum — stdin read deferred in harness"
}Expected output:
lineam exemplum — stdin read deferred in harness