一种scanf var x intfmt.Println("input a int number")fmt.Scan(&x)fmt.Printf("读取到内容:%d\nhe",x)一种 bufio reader := bufio.NewReader(os.Stdin)res,_ := reader.ReadString('\n')fmt.Printf("读取到内容%s\n",res) package main import ( "
echo please input “runbip” to run bip. variableName="null" while [ $variableName != "runbip" ] do read variableName sleep if [ $variableName != "runbip" ]; then echo please input “runbip” to run the BIP: fi done 参考: 1. Linux