package main
import "bufio"
import "fmt"
import "os"
import "strconv"
func main(){
scan := bufio.NewScanner(os.Stdin)
scan.Scan();
line , _ := strconv.Atoi(scan.Text())
a := make([]string, line)
for i:=0;i<line;i++{
scan.Scan();
a[i] = scan.Text()
}
fmt.Println(a)
}
Go语言操作系统的输入流
最新推荐文章于 2023-08-21 20:34:50 发布