package main
import (
“bufio”
“fmt”
“os”
)
func main() {
//os.Stdin
//os.Stdout
fmt.Println(“xxx”)
os.Stdout.Write([]byte(“xxx”))
bytes := make([]byte,10)
n,err := os.Stdin.Read(bytes)
fmt.Println(n,err,bytes)
//读一行数据 可以是空
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
fmt.Println(scanner.Text())
//os.Stdout 文件指针
fmt.Fprintf(os.Stdout,"%T",1)
}