🔄Update: Lecture-1
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
- `go build`
|
||||
- `go run`
|
||||
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user