From 79a2c8b7661f79e7bf8928d6979278410536839f Mon Sep 17 00:00:00 2001 From: Wonder Date: Thu, 16 Oct 2025 12:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=94=84Update:=20Lecture-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lec-1/Note.md | 2 ++ Lec-1/main.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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) }