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