Go语言操作系统的输入流
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] =
原创
2020-08-29 17:40:46 ·
261 阅读 ·
0 评论