The def statement introduces methods.
def语句引入方法。
Listing 2. Don't forget the def keyword!
清单2.不要忘记def关键字!
Method definitions start with the def keyword.
方法定义由def关键字开始。
We then use the def macro to define a constant called big-num-str.
之后,使用def宏来定义一个常量,称为big - num - str。
The def keyword can be extremely handy when it comes to writing simple scripts.
在编写简单的脚本时,def关键字会非常好用。
The solution, of course, is to add the def keyword to numstr in the toString method.
当然,解决方案也是在toString方法中将 def关键字添加到 numstr。
Defs do not require a return statement, so if the last line produces some value, that value is returned by the def.
def不需要return语句,因此如果最后一行产生某个值,那么这个值由def返回。
Some people add def scaffold = @artifact.name@ so that dynamic scaffolding is the default behavior for all of their controllers.
全部新控制器都将基于修改过的模板代码(有些人会加入defscaffold = @artifact.name@,这样动态搭建就会成为所有控制器的默认行为)。
Groovy functions require the def keyword, and you can think of them as globally static methods available within a script's scope.
Groovy函数需要def关键字,可以将关键字想像为在脚本范围内可用的全局静态方法。
With the default channel Settings of PUTAUT (def) and MCAUSER (' '), messages arrive with full administrative authority. For this to be secure.
设置PUTAUT (DEF)和MCAUSER(' ')的缺省通道,对于到达的消息具有全面的管理权力。
Not only is writing a Groovlet as simple as creating a Groovy script but you can also define functions with the def keyword and call them directly within the Groovlet.
编写Groovlet不仅像创建一个Groovy脚本那样简单,而且还可以用def关键字定义函数,并在Groovlet中直接调用它们。
Well, there's the S-1 prospectus followed by the Def-14a proxy statements, 10-q quarterly reports, 10-k annual reports, 8-ks, 4s, 3s, it's a nightmare for everyone... except the lawyers.
当然,还有the s - 1 prospectus、the Def - 14 a proxystatements 10 - qquarterlyreports 10 - Kannual reports 8 - Ks4s3s除了律师,这些简直就是每个人的噩梦!
This song blends vivid enlightenment into real-life sound samples from the kittens at the DEF courtyard, and is sure to touch a chord with friends who have a soft spot for these furry friends;
《念到深处》是解征在救助猫咪过程中留下的难忘记忆,歌声中融入了“别吃朋友”小院猫咪的原声采样,相信会让爱猫的朋友们为之动容;
There is no need to go further down the list, even though plug-in DEF is also supported at both client and server.
之后,即使插件DEF也受客户机和服务器的支持,也不必再进一步查找这个列表。
With each subsequent generation of television, the language and buzzwords surrounding Hi-Def televisions become more and more complex.
对于其后的每一代电视,高清电视的术语都越来越复杂。
I then proceed to define a list, populate it, and call my newly defined def. Next, I create a map and do the same thing for that collection.
然后我定义一个list,填充它,并调用我新定义的def。之后,我创建一个map,并对这个集合做了同样的操作。
Mpstat now reports (below) that logical CPU 0 is back to an idle state, while CPU 1 takes over the workload from CPU 0 for WPAR "def" 's processes.
如下所示,mpstat现在报告逻辑CPU0恢复到空闲状态,而逻辑CPU1从逻辑CPU 0接管WPAR“def”的进程的工作负载。
For example, in Listing 2, the code defines a def that returns the class name of the variable passed in.
例如,在清单2中,代码定义了一个def,它返回传递进来的变量的名称。
The first model we create is the graphical definition model (click the create hyperlink under the graphical def model in the dashboard).
需要创建的第一个模型是图形化定义模型(在指示板的GraphicalDefmodel下单击创建超级链接)。
If you like the photo, the high-def, slow-motion video of the clock exploding is even better.
对图片有意者,可以在高清晰慢动作的时钟爆炸视频中观看到更好的效果。
For example, the regular expression ABC will match the string ABC but not DEF.
例如,正则表达式abc将与字符串abc匹配,但不与def匹配。
The fight for better broadband is important not just so Americans can watch high-def videos of cute cats.
争取更好的宽带网络很重要,它不仅可以让美国人能够看到漂亮小猫的高清视频。
The function can have any name and must be declared in the EXPORTS function of the module definition (def) file with an ordinal value of 1.
该函数可以拥有任何名称,但必须在模块定义(DEF)文件的exports函数中用序数值1来声明它。
So, the regular expression A.C will match the strings ABC, AAC, AKC, and many others, but it still won't match DEF.
所以,正则表达式a.c将与字符串abc、aac、akc以及许多其它字符串相匹配,但它依然不与def相匹配。
HDCP is used to protect high-def digital video signals "on the wire," for example on the cable connecting your DVD player to your TV.
HDCP用于保护“线路上的”高清晰数字视频信号,例如你的DVD播放器和电视机之间的线路。
Def files have their own syntax and contain the symbols that need to be exported from the DLL.
def文件具有自己的语法,并且包含需要从dll中导出的符号。
Notice that methods are defined between the keywords: def and end.
注意,方法定义在以下关键词之间:def和end。
For example, a text "ABC def ghi" consists of three words, and that results in three index entries (all pointing to the same text document) being generated.
例如,文本“abcdefghi”由三个单词组成,这导致生成三个索引条目(都指向相同的文本文档)。
Their partnership which will deliver a new line of high-def TVs with the Netflix service built directly into the set itself.
他们将合作生产一个新系列的直接内置Netflix服务的高清电视。
The cameras can also be used to shoot snapshots, and the rear one does passable 720p high-def video.
摄像头还可以用来快照,后置的那个能够拍摄720p的高清视频,还算说得过去吧。
应用推荐