Compare commits

..
3 Commits
Author SHA1 Message Date
wonder 79a2c8b766 🔄Update: Lecture-1 2025-10-16 12:50:07 +08:00
wonder 7500e1a0db 🔄Update: Lecture-1 2025-10-16 12:49:50 +08:00
wonder be27e81664 🔧Chore: 排除无关文件 2025-10-16 12:33:51 +08:00
4 changed files with 24 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
*.idea/
+2
View File
@@ -0,0 +1,2 @@
- `go build`
- `go run`
+3
View File
@@ -0,0 +1,3 @@
module Lec-1
go 1.25
+18
View File
@@ -0,0 +1,18 @@
// 包声明,表示这是一个可执行的 Go 程序
package main
// 格式化输入输出,提供打印、扫描、格式化字符串等功能
import (
"fmt"
"time"
)
// main 函数是程序的入口点
func main() {
// 声明
var s string
// 赋值
s = "Wonder"
fmt.Printf("Hello and welcome, %s!\n", s)
time.Sleep(3 * time.Second)
}