2021年8月31日
摘要: Go语言学习 _基础04 _Map&Set 1、map package map_test import ( "fmt" "testing" ) func TestInitMap(t *testing.T) { m1 := map[int]int{1: 1, 2: 4, 3: 9} // 初始化方式一 阅读全文
posted @ 2021-08-31 13:07 OwlInTheOaktree 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Go语言学习 _基础03 _数组和切片 1、数组 package array_test import "testing" func TestArrayInit(t *testing.T){ var arr [3]int // 声明方式 1 arr1 := [4]int{1,2,3,4} // 声明方 阅读全文
posted @ 2021-08-31 00:31 OwlInTheOaktree 阅读(27) 评论(0) 推荐(0) 编辑