摘要: Go语言的简介和基本使用 Go 函数、包、mode模式 Go if-else语句、for循环、switch语句 Go 数组、切片、Maps 阅读全文
posted @ 2020-04-21 20:43 Hank·Paul 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Go if-else语句 package main import "fmt" func main() { a := 10 //1 基本使用 //if a>10{ // fmt.Println("大于10") //}else { // fmt.Println("小于等于10") //} //2 if 阅读全文
posted @ 2020-04-21 20:41 Hank·Paul 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Go函数 package main import "fmt" func main() { fmt.Println("开始") // 1 函数调用 //test() // 2 函数调用 //方式一 //a:=10 //test(a) //方式二 //test(10) // 3 函数调用 //test( 阅读全文
posted @ 2020-04-21 20:39 Hank·Paul 阅读(446) 评论(0) 推荐(0) 编辑