go top

有道翻译

全局变量与局部变量

Global variables and local variables

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

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

    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

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

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

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