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
https://magic.iswbm.com/c01/c01_29.html
The text was updated successfully, but these errors were encountered:
第一段代码与第二段代码的主要差别在于对全局变量的处理; 第一段代码尝试修改全局变量而未使用global关键字引发错误,而第二段代码只是读取全局变量的值,所以没有问题。
Sorry, something went wrong.
No branches or pull requests
1.29 局部/全局变量傻傻分不清 — Python黑魔法手册 1.0.0 documentation
https://magic.iswbm.com/c01/c01_29.html
The text was updated successfully, but these errors were encountered: