diff --git a/Lec-1/Note.md b/Lec-1/Note.md index e69de29..72572c5 100644 --- a/Lec-1/Note.md +++ b/Lec-1/Note.md @@ -0,0 +1,2 @@ +- `go build` +- `go run` \ No newline at end of file diff --git a/Lec-1/main.go b/Lec-1/main.go index 6687301..1fcc71f 100644 --- a/Lec-1/main.go +++ b/Lec-1/main.go @@ -4,6 +4,7 @@ package main // 格式化输入输出,提供打印、扫描、格式化字符串等功能 import ( "fmt" + "time" ) // main 函数是程序的入口点 @@ -13,5 +14,5 @@ func main() { // 赋值 s = "Wonder" fmt.Printf("Hello and welcome, %s!\n", s) - + time.Sleep(3 * time.Second) }