We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
func main() { for i := 0; i < 3; i++ { defer func(){ println(i) } () } } // Output: // 3 // 3 // 3
这个例子我在本地测试如下
是因为高版本的go对循环的局部变量做了新的机制吗?
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル