是程序运行太快肉眼分辨不出了,可以睡眠5秒package mainimport ( "fmt" "time")func main() { fmt.Println("hello world !") time.Sleep(5 * time.Second)}
程序运行结束当然要退出.