In Listing 9, I define a simple function that takes no parameters.
在清单9中,定义了一个没有参数的简单函数。
With JSON, you call a simple function and get your data, formatted and ready for use.
如果使用JSON,只需调用一个简单的函数,就可以获得经过格式化的数据,可以直接使用了。
Next, create a simple function that prevents your search form from acting like a typical form.
接下来,创建一个简单的函数来阻止搜索表单表现得像典型的表单那样。
Listing 1 is a diagrammatic representation of gathering information from STAB format for a simple function.
清单1以图表形式展示了从stab格式收集一个函数的信息。
For example, in Listing 1, I define a simple function that prints out the contents of a collection, be it a list or a map.
例如,在清单1中,我定义了一个简单的函数,它将输出一个集合的内容,而不管这个集合是list还是map。
Now you can define a simple function to do nothing more than tell you how many parameters it has and display them as shown in Listing 1.
现在,您可以定义一个简单函数,其用途只是告诉您它所拥有的参数数量并显示这些参数,如清单1所示。
You can find some existing functions to compare Eclipse plug-in versions, or you can write a simple function to compare plug-in versions based on the sample code in Listing 4.
我们可以利用现有的一些函数来对Eclipse插件的版本进行比较,或者可以基于清单4所示的样例代码编写一个简单的函数来对插件版本进行比较。
By using a simple function like exit_msg and a few logical operators, the script could be condensed into the better-looking and easier-to-understand program shown in Listing 14.
只需使用exit_msg这样的简单函数和几个逻辑操作符,这个脚本就可以简化成更漂亮更容易理解的程序,见清单14。
Business transactions might seem like a simple function to the invoking application, but they might be implemented as composite functions covered by their own transactional context.
业务事务很像是调用应用程序的简单函数,但是它们可能是作为自己的事务的上下文所包含的复合函数来实现的。
By adding a simple function to display a message and exit with the appropriate return code as well as moving everything into a for loop, the script looks cleaner and is easier to understand.
这个脚本增加了一个简单的函数来显示一个消息并带适当的返回码退出,还把所有操作转移到一个for循环中,这使这个脚本看起来更干净、更容易理解了。
By adding a simple function to display a message and exit with the appropriate return code as well as moving everything into a for loop, the script looks cleaner and is easier to understand.
这个脚本增加了一个简单的函数来显示一个消息并带适当的返回码退出,还把所有操作转移到一个for循环中,这使这个脚本看起来更干净、更容易理解了。
应用推荐