标签 - 读入一行
fmt.Scanln()不是读取一行, 而是遇到换行就停止,
Scanln is similar to Scan, but stops scanning at a newline and after the final item there must be a newline or EOF.
举个例子:
var i, j, k int
fmt.Scanln(&i, &j, &k)
fmt.Println(i, j, k) 输入1, 2 回车后程序结束. 如果换成fmt.Scan()还会让输入的.
使用stdin与read