蓝图思想萌发

This commit is contained in:
2025-11-16 02:39:07 +00:00
parent 6cf67af8b0
commit 2eb3c1263d

11
main.go
View File

@@ -4,8 +4,16 @@ package main
import "fmt" import "fmt"
// 蓝图思想萌发
func main() { func main() {
hello_world() // hello_world表
}
// hello_world表
func hello_world() {
var H_W string // srting类型变量一定要打引号 var H_W string // srting类型变量一定要打引号
H_W = "Hello World" H_W = "Hello World"
@@ -20,5 +28,4 @@ func main() {
fmt.Print(换行) // 变量可以用中文,但是不建议 fmt.Print(换行) // 变量可以用中文,但是不建议
fmt.Print(age) fmt.Print(age)
fmt.Print(换行) // 变量可以用中文,但是不建议 fmt.Print(换行) // 变量可以用中文,但是不建议
} }