A local variable used by an inner function is called an upvalue, or external local variable, inside the inner function.
否则,你可能浪费了很多堆栈帧的资源,用于保存可能仅使用一些局部变量就可以实现的功能。
Otherwise, you might be wasting a lot of stack frames for something that might have been implemented using only a few local variables.
那么,在这里,我要将全部8个位读到一个局部变量中。
So here I'm going to read into a local variable all 8 bits.
我们不需要关注线程内操作(例如,添加两个局部变量并将结果存储在第三个局部变量中)。
We do not need to concern ourselves with intra-thread actions(e.g., adding two local variables and storing the result in a third local variable)..
在此例中,它将提供创建一个类字段i、一个局部变量i或一个方法参数i的建议;.
In this case, it will offer to create a class field i, a local variable i, or a method parameter i;
说明:如上实例定义了两个带有相同存储类的变量,auto只能用在函数内,即auto只能修饰局部变量。
The example above defines two variables with the same storage class. auto can only be used within functions, i.e. local variables.
在此例中,它将提供创建一个类字段i、一个局部变量i或一个方法参数i的建议;.
In this case, it will offer to create a class field i, a local variable i, or a method parameter i;
为了使代码简洁易懂,建议在函数中主要使用局部变量和参数,而不是外部变量。
To make the code clean and easy to understand, it's recommended to use mainly local variables and parameters in the function, not outer variables..
在第一个代码示例中,a是一个main方法局部变量。
In the first code sample, a is a main method local variable.
你可以手动编写自己的类来达到生成器的效果,把生成器的所有局部变量作为实例的成员变量存储起来。
You could achieve the effect of generators manually by writing your own class and storing all the local variables of the generator as instance variables..
过早地声明局部变量可能导致其范围不仅过早开始而且结束太晚。
Declaring a local variable prematurely can cause its scope not only to extend too early, but also to end too late.
函数的结果不依赖于非局部变量、参数的易变性或来自任何I/O流的数据。
The result does not depend on non-local variables, the mutability of arguments, or data from any I/O streams.
即使board是一个局部变量,makeMove()函数仍然修改了最初的列表。
Even though board is a local variable, the makeMove() function modifies the original list.
这允许局部变量比中心变量更大地波动,理论上允许了对参数空间更多的探索。
This allows the local variables to fluctuate further from the center variable, which in theory allows for more exploration of the parameter space.
给局部变量val1赋值不会影响局部变量.
The assignment to the field of the local variable val2 does not impact the field of the local variable val1.
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt