Go面试题24
Go面试题24 1: 下面这段代码输出什么? func main() { m := map[int]string{0:"zero", 1:"one"} for k, v := range m { fmt.Println(k, v) } } 2: 下面这段代码输出什么? func main() { a := 1 b := 2 defer calc("1",a, calc("10",a, b)) a = 0 defer calc("2",a, calc("20",a, b)) b
Posted by "" on Thursday, December 26, 2019