翻译11.12部分内容

This commit is contained in:
dake
2015-11-02 17:17:45 +08:00
parent af7a9355ac
commit 6abfdb7f52
21 changed files with 256 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
# 读取用户的输入
# 12.1 读取用户的输入
我们如何读取用户的键盘(控制台)输入呢?从键盘和标准输入 `os.Stdin` 读取输入,最简单的办法是使用 `fmt` 包提供的 Scan 和 Sscan 开头的函数。请看以下程序: