Go 面试题3
下面2段代码输出什么: func Test1(t *testing.T) { s := make([]int, 5) s = append(s,1,2,3) t.Log(s) } func Test2(t *testing.T) { s := make([]int,0) s = append(s, 1,2,3,4) t.Log(s) } 下面这段代码有什么缺陷: func funcMui(x, y int) (sum int, error) { return x + y, nil } new()与m
Posted by "" on Wednesday, December 11, 2019