go top

有道翻译

local variable scope

局部变量作用域

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

双语例句

  • When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.

    闭包捕获”一个变量时,就会将这个变量提取本地范围匿名对象里。

    youdao

  • Watch the variables being used in a function. If you notice a function using an out-of-scope variable more than once, store it in a local variable and use that instead.

    仔细检查函数所有使用变量如果一个变量不是当前作用域定义的,而且使用不止一次那么我们就应该把这个变量保存局部变量中,而使用这个局部变量来进行读写操作。

    youdao

  • The calculator makes use of the local statement to declare x as a local variable that is available only within the scope of the mycalc function.

    这个计算器利用 local 语句x 声明局部变量只能mycalc 函数范围使用。

    youdao

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

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

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