所有这些都是在20行代码中完成的。
最初它只有大约36行代码。
清单8显示完成该任务所需的两行代码。
Listing 8 shows the two lines of code needed to do all this.
在顶端,添加列表10所示的两行代码。
At the top, add the two lines of code that Listing 10 shows.
清单1中的机场名称信息通常是一行代码。
Note that the airport name information in Listing 1 usually is a single line of code.
事实上,其中4个步骤仅需修改一行代码。
In fact, for 4 of them, it's as simple as changing one line of code.
向一个sqs队列写一条消息需要三行代码。
Writing a message to an SQS queue takes three lines of code.
用一行代码打印%ENV内容。
只使用了五行代码,我就有了一个可工作的存根。
With a mere five lines of code, I have a workable testing stub.
从清单2中可以看到所有这些只由一行代码实现。
From Listing 2, you can see that all of this was accomplished with just one line of code.
您是否曾仅为了处理浏览器差别而编写几百行代码?
Have you written hundreds of lines of code just to handle browser differences?
你只是做了多年无用的开发工作和成千上万行代码。
You just rendered useless years of development work and many thousands of lines of code.
譬如,开发者只需添加两行代码就可嵌入一个视频。
To embed a video, for example, a developer only needs to add two lines of code.
在某个示例中,使用16行代码检查一个属性的值。
In one example, 16 lines of code were used to check the value of an attribute.
对于其他补丁,平均每个补丁只需编写17行代码。
Of the remaining patches, special programming amounted to an average of 17 lines of code per patch.
通过框架,解决一个复杂的问题往往仅需几十行代码。
Using a framework, you can often solve a complex problem with just a dozen lines of code.
第4行代码将文档更改保存到后端数据存储。
Line 4 saves the document changes to the backend data store.
第9行代码从请求参数中获取验证token。
Line 9 gets the authentication token from the request parameter.
它构建URI,设置请求头,并在一行代码中调用请求。
It builds the URI, sets the request headers, and invokes the request in one line of code.
你可以写一行代码来改变你先前设计的应用程序。
You can make any necessary changes to your design prior to writing a line of code.
接下来的两行代码表示变量t确实指向函数。
The next two lines demonstrate that the variable t really does point to a function.
(右大括号)与声明函数的那一行代码头部对齐。
The (right curly brace) is aligned with the line containing the beginning of the declaration of the function.
要添加一条记录定义,将光标移到编辑器的最后一行代码上。
To add a record definition, place the cursor on the last line of code in the editor.
清单16中的 112行代码就可以完成老板的要求。
The 112 lines of code that follow in Listing 16 do what the boss requested.
清单2 使用 70行代码实现了一个计算器。
The code in Listing 2 realizes a calculator in 70 lines of code.
其实,你几乎可以不用编写一行代码就能建立起整个应用程序。
In fact, you can almost get away with building an entire application without writing a single line of code.
在每个产品中,用三行代码创建、打开并撰写文件都是可能的。
In each product, it is possible to create, open, and write to a file with three lines of code.
请注意,以前的两行代码现在变成了整洁的一行代码。
Note that what was previously two lines of code now fits neatly into a single line of code.
在清单2中的原始代码基础上只更改一行代码即可。
This requires you to change only one line of code from the original code in Listing 2.
在清单2中的原始代码基础上只更改一行代码即可。
This requires you to change only one line of code from the original code in Listing 2.
应用推荐