文章目录 go 输入参数 go 输入参数 func getinput() string{ input1 :="" fmt.Scanln(&input1) return input1 } func main() { print(getinput()) }