• 在函数内定义一个函数可能会用到全局变量同名局部变量总是不好的。

    It is almost always a bad idea to define a local variable with the same name as a global variable that the function USES or might use.

    youdao

  • 如果一个局部变量函数参数声明的名字某个全局变量名字相同,那么就有效地隐藏这个全局变量

    If you declare a local variable or function parameter with the same name as a global variable, you effectively hide the global variable.

    youdao

  • 局部变量可以全局变量具有相同名称它们完全不同相互分离的。

    A local variable can have the same name as a global variable, but it is entirely distinct and separate.

    youdao

  • 局部变量可以全局变量具有相同名称它们完全不同相互分离的。

    A local variable can have the same name as a global variable, but it is entirely distinct and separate.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定