Skip to content
New issue

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

第九章9.7节如果在finally中也加一个return:以上代码的输出结果为3。应为2。 #182

Open
fanweikan opened this issue Jun 21, 2022 · 1 comment

Comments

@fanweikan
Copy link

第九章9.7节如果在finally中也加一个return:以上代码的输出结果为3。应为2。

@LEE-cm
Copy link

LEE-cm commented Feb 6, 2023

try和finally中都有return,最后只执行finally中的return语句,所以第三个示例返回值是2,书中给的3有误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants