Here, we call the range function and pass in the number 1,000.
在这里,我们调用了range函数并将数1,000传递给它。
The range function is simply a list constructor, very similar to the range function in Python, or the..
range函数只是一个list构造函数,非常类似于Python中的range函数,或者是Haskell或Perl中的. .。
At the same time, the method of applying half - range function tO the internal - force equation of straight bar is illustrated.
同时说明半幅函数在建立直杆内力方程中的应用方法。
Range producer function to define the search ranges for the spatial index during query execution.
用于定义在查询执行期间空间索引的搜索范围的范围生成器函数。
Once the function returns a value outside that range, either the value is passed to a different handler or the state machine exits after calling a do-nothing end-state handler.
一旦函数返回了超出范围的值,那么该值将传送到另一个处理程序,或者状态机在调用了一个什么也不做的终态处理程序后就退出。
But what's striking is the range of function and dysfunction.
但是,这种疾病最引人注目的是功能和功能障碍的范围。
This limits greatly the possible range of your factorial function.
这极大地限制了阶乘函数的可能范围。
If you find a function address range that covers the failing instruction address, the message for that range indicates the method where the error was likely introduced.
如果您找到一个函数地址范围包含了失败的指令地址,那么这个范围的消息就会说明可能引入错误的方法。
That is, if a function has a certain set or range of valid values for its arguments, an assertion to this effect can be placed as the first line of code in the function.
那就是说,如果函数有确定的有效值集合或范围可作为参数,可以将检验参数是否有效的断言放在该函数代码的第一行。
Distance glasses (minus lenses) are routinely prescribed. These function by bringing everything closer, up within the range of clear vision.
常规配置远距眼镜(负透镜),作用是拉近各种物体到看得清晰的范围。
Likely future developments could include some way to specify a range of times or a search function.
可能以后会开发某些方法来指定时间范围或搜索函数。
Each event is in the domain of the transition function belonging to the "current" node, where the function's range is a subset of the nodes.
每个事件都在属于“当前”节点的转移函数的控制范围内,其中函数的范围是节点的一个子集。
Of course, real contracts are written in a language and may not unambiguously define such a function - not its domain or range, much less the function itself.
当然,真实的合同是以语言的形式写的而且可能会含糊的定义这个函数,不光是它的范围和领域,还可能是函数本身。
There is a specific function for converting the measured millivolts from the TMP36 to degrees Celsius, changing from a range of 0-1023 to 1 to 5, finding the zero point and scaling the result by 100.
有一个特定的函数可以将从TMP36测得的毫伏数转变为摄氏度,范围也将从0-1023 转改为从1-5,找到零点后即可将结果缩放 100。
For instance, if you pass a 32-bit value to a function expecting a 16-bit value, and the value is in range, the function may never notice the extra bytes.
举例来说,如果您将一个32位的值传递给一个期望16位值的函数,而且所传递的参数值也在正确范围之内,那么这个函数就永远不会注意到多出来的字节。
Directives and decisions issued from this centralized governance function will be debated outside the range of that governance and likely (if at all) implemented much differently than intended.
源自此集中的治理方法的指示和决定将在该治理范围之外得到讨论,并且很可能(如果有一点)以不同于预期的方式实现。
However, sometimes you might prefer to specify a range but then have the function called only once, and then handle the range semantics within the function itself.
然而,有时希望指定一个范围,但是只调用一次函数,然后在函数内部处理范围语义。
The UpdateTimestamp() function performs a substitution (s/.../.../) on every line being written, by specifically limiting the range of the substitution to between '[ and '] like so: '[,']s/.../.../.
UpdateTimestamp()函数,通过专门将替换的范围限制在'[和 ']之间,在每个正在被编写的代码行上执行一个替代(s/.../.../),像这样:'[,']s/.../.../。
The resulting perfect hash() function returns an unsigned int value in the range 0..(k-1), where k is the maximum keyword hash value +1.
产生的完美hash()函数返回一个无符号的int值,范围为 0..(k-1),其中k 值为最大关键字散列值加 1。
The primary function of OpenSocial is to allow developers to create applications that can be used across a wide range of social networks.
OpenSocial的主要功能是允许开发人员创建可用于广泛范围的社会网络的应用程序。
The function returns a specific value (or range of values) to indicate an error, and the global variable errno is set to indicate the cause of the problem.
函数返回特定值(或值范围)以指明错误,且设置全局变量errno以指明问题的起因。
You've got a picture of somebody's face, it's a million pixels. Each pixel has a range of values from zero to 256. I want to hash a face with some function into an integer.
你有一个人的脸部照片,它有一百万个像素,每个像素的值范围在0到256之间,我想用某个函数将一张脸部照片。
In earlier examples, functions have relied on an explicit command range or a Visual mode selection to determine which lines they operate on, but this function computes its own range directly.
在此前的例子中,函数依赖于一个显式的命令范围或一个Visual模式选择来确定要进行处理的行,但是这个函数则直接计算它自己的行范围。
then the function would be called once for each line in the range (in this case, for every line in the file).
那么将针对范围内的每一行调用一次函数(在本例中,指的是文件中的每一行)。
To get a value within this range, you can multiply the result from the Rnd() function by 10000 and discard anything after the decimal point.
要在这个范围内获取一个值,把Rnd()函数的结果乘以 10000,并且去掉小数点后面的所有值。
The Uniq function is declared to take a range, so it will only be called once, even when invoked on a range of lines in the buffer.
Uniq函数被声明为接受一个范围,因此只能调用一次,即使在缓冲区内的一个行范围上调用时。
In the case of the call command, specifying a range causes the requested function to be called repeatedly: once for each line in the range.
对于call命令,指定范围将致使所请求的函数被反复调用:对范围中的每一行调用一次。
You can select an individual value from an input range using the CHOOSE function, which makes the selection based upon the position of the value in the series. The CHOOSE function takes two arguments.
可以使用CHOOSE函数从输入范围中选择单一值,它根据值在序列中的位置做出选择。
Finally, if the range covers more than a single line (in other words, if a:lastline > a:firstline), the function reports how many lines were updated.
最后,如果范围涵盖了多个行(即a:lastline > a:firstline),函数将报告被更新的行的数量。
Once you have a function call that can operate on a range of lines, a particularly useful technique is to call that function via Visual mode (see: help Visual-mode for details).
一旦拥有了一个可以操作行范围的函数调用后,一个特别有用的技巧就是通过Visual模式(参见:help Visual - mode获得更多细节)调用该函数。
应用推荐