go top

局部变量与全局变量

网络释义

  Local variable and Global variable

局部变量与全局变量(Local variable and Global variable)用 global 就可以把一个变量定义为全局变量。MATLAB 中变量名是区分大小写的,习惯上常将大写字母定为全局变量。

基于14个网页-相关网页

有道翻译

局部变量与全局变量

Local variables and global 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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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