二 func t2() (a int) { defer func() { a++ }() return 1 } 输出:2 改为输出1
二
func t2() (a int) {
defer func() {
a++
}()
return 1
}
输出:2
改为输出1