The def statement introduces methods.
def语句引入方法。
Listing 2. Don't forget the def keyword!
清单2.不要忘记def关键字!
Method definitions start with the def keyword.
方法定义由def关键字开始。
In fact, method definitions — def — are no more than Ruby macros.
事实上,方法定义——def——仅仅是Ruby的宏。
Notice that methods are defined between the keywords: def and end.
注意,方法定义在以下关键词之间:def和end。
This is a structural type of the form { def receiveUpdate(subject:Any) }.
这是一个结构类型,形式是 {defreceiveUpdate(subject:Any) }。
The def keyword can be extremely handy when it comes to writing simple scripts.
在编写简单的脚本时,def关键字会非常好用。
This is why your TV is so high-def, and your computer monitor is so bright and clear.
这就是为什么你的电视机是高清晰的,你的电脑显示屏又亮又清楚。
September 13 — Sony says it will use Blu-ray Disc in all high-def video recorders in Japan.
9月13日—Sony宣布其在日本的所有高清视频录像机上均采用Blu - ray光盘。
To my mind, a new keyword — such as generator in place of def — would have been a better choice.
对于我来说,新关键字—比如generator代替def—会是一个比较好的选择。
I love your big, bright, three-inch screen, your built-in flash, your H.D.M.I. output for hi-def TV sets.
我喜欢你那又大又亮的三英寸屏幕,还有你那内置的闪光灯,还有为高清电视机预留的HDMI输出接口。
The fight for better broadband is important not just so Americans can watch high-def videos of cute cats.
争取更好的宽带网络很重要,它不仅可以让美国人能够看到漂亮小猫的高清视频。
The first line of a function definition, also known as the method signature, begins with def (shorthand for define).
函数定义的第一行也称为方法签名(method signature),以def开头(def是define这个单词的缩写)。
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播放器和电视机之间的线路。
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, 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”由三个单词组成,这导致生成三个索引条目(都指向相同的文本文档)。
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中直接调用它们。
There are some compute-intensive tasks that GPUs are better suited for than traditional CPUs, and they’re not just related to displaying high-def video and playing games.
GPU比传统的CPU更适合于一些密集型计算任务,而不仅仅是与显示高清视频和游戏有关。
QE-DEF-0030 Expression parsing error.
QE-DEF - 0030表达式解析错误。
For example, the regular expression ABC will match the string ABC but not DEF.
例如,正则表达式abc将与字符串abc匹配,但不与def匹配。
The R&B star struck a business deal with Braun; a Def Jam record contract soon followed.
这位R&B歌星和布劳恩签署了一份商业合约,很快DefJam唱片公司的合约也随之而来。
Def files have their own syntax and contain the symbols that need to be exported from the DLL.
def文件具有自己的语法,并且包含需要从dll中导出的符号。
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相匹配。
With each subsequent generation of television, the language and buzzwords surrounding Hi-Def televisions become more and more complex.
对于其后的每一代电视,高清电视的术语都越来越复杂。
One Saturday I sat alone on the floor in our tiny apartment, piecing a quilt, when the CD changer switched to a Mos Def album that Adam had been listening to a few days before.
在某一个周六,我一个人坐在我俩那小小的公寓地板上缝着棉被。这时,CD播放器自动转接到了亚当早些日子听过的MosDef的专辑。
Using PUTAUT (DEF), set MCAUSER to a low-privileged non-login ID that is owned by the WebSphere MQ administration team, then authorize that ID to the application queues and the DLQ.
使用PUTAUT (DEF),将MCAUSER设置为WebSphereMQ管理团队所拥有的较低权限的非登录ID,然后将这个ID授权给应用程序队列和DLQ。
Using PUTAUT (DEF), set MCAUSER to a low-privileged non-login ID that is owned by the WebSphere MQ administration team, then authorize that ID to the application queues and the DLQ.
使用PUTAUT (DEF),将MCAUSER设置为WebSphereMQ管理团队所拥有的较低权限的非登录ID,然后将这个ID授权给应用程序队列和DLQ。
应用推荐