go 接受输入函数

文章目录

go 输入参数

func getinput() string{
    
    
    input1 :=""
    fmt.Scanln(&input1)
    return input1
}
func main() {
    
    
    print(getinput())
}

猜你喜欢

转载自blog.csdn.net/qq_43373608/article/details/107217304