🔄Update: Lecture-1

This commit is contained in:
2025-10-16 12:49:50 +08:00
parent be27e81664
commit 7500e1a0db
3 changed files with 20 additions and 0 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
module Lec-1
go 1.25
+17
View File
@@ -0,0 +1,17 @@
// 包声明,表示这是一个可执行的 Go 程序
package main
// 格式化输入输出,提供打印、扫描、格式化字符串等功能
import (
"fmt"
)
// main 函数是程序的入口点
func main() {
// 声明
var s string
// 赋值
s = "Wonder"
fmt.Printf("Hello and welcome, %s!\n", s)
}