下面代码输出结果是什么?why?
package main
import "fmt"
func main() {
a, b := 1, 1
if a == b {
a := -1
fmt.Println(a + b)
}
fmt.Println(a + b)
}
推荐文章: