标签:lan print imp ola sleep cond fun 函数 time
package main //程序的包名
/*
import "fmt"
import "time"
*/
import (
	"fmt"
	"time"
)
//main函数
func main() { //函数的{  一定是 和函数名在同一行的,否则编译错误
	//golang中的表达式,加";", 和不加 都可以,建议是不加
	fmt.Println(" hello Go!")
	time.Sleep(1 * time.Second)
}
标签:lan print imp ola sleep cond fun 函数 time
原文地址:https://www.cnblogs.com/dech/p/14941349.html