... 命名变量 naming variable 命名参数 named parameter 命名参数结合 named parameter association ...
基于14个网页-相关网页
通常情况下,它通过使用相关元素的名称来命名变量。
It helps to name the variables by using the name of the element that they will be associated with, normally.
命名变量的意义在于让读者能够立即理解该变量的用意。
The point of naming a variable is to enable the reader to instantly go, "Oh. I know what that does."
必要时重构这个代码。例如,重组语句、重命名变量等等。
Refactor the code if required. For example, reorganize the statements, rename the variables, and so on.
All right, c p 1 dot y, x I've said assign that to the value 2, 2,0. So now c p 1 has inside of it an x and y value.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.
关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。
Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.
让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。
应用推荐