go top

local function scope

网络释义

  函数局部作用域

... 函数局部作用域Local Function Scope); 闭包作用域(Enclosing Scope); 全局作用域(Global Scope); ...

基于1个网页-相关网页

有道翻译

local function scope

局部函数作用域

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

双语例句

  • 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

  • Because tally is a local variable within the function, it is created anew with each call and falls out of scope and is destroyed automatically when each call returns.

    由于tally函数本地变量将在每次调用重新创建清空范围并且每个调用被返回自动销毁

    youdao

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

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

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