If you declare a variable or constant outside a function or class definition, it is a global variable, and its value is accessible and modifiable throughout your program.
如果在函数或类定义之外声明变量或常数,则是全局变量,它的值可在整个程序中访问和修改。
If you declare a variable or constant outside a function or class definition, it is a global variable, and its value is accessible and modifiable throughout your program.
如果在函数或类定义之外声明变量或常数,则是全局变量,它的值可在整个程序中访问和修改。
应用推荐