We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一条break语句可以用来提前跳出包含此break语句的最内层for循环。 下面这段代码同样逐行打印出0到9十个数字。
break
for
0
9
i := 0 for { if i >= 10 { break } i++ fmt.Println(i) }
此程序将打印出 1 至 10
1
10
英文版本中没有后面一句,但是中文版本应改为:
i := 0 for { if i >= 10 { break } fmt.Println(i) i++ }
最后,万分感谢作者,此书风格是我最喜欢的技术文章风格。
The text was updated successfully, but these errors were encountered:
多谢这个发现!
Sorry, something went wrong.
0bfb0da
No branches or pull requests
一条
break
语句可以用来提前跳出包含此break语句的最内层for
循环。 下面这段代码同样逐行打印出0
到9
十个数字。此程序将打印出
1
至10
英文版本中没有后面一句,但是中文版本应改为:
最后,万分感谢作者,此书风格是我最喜欢的技术文章风格。
The text was updated successfully, but these errors were encountered: