When they occur inside of docstrings inside of Python source code, like in the second example, they are called doctests.
当它们出现在python源代码中的docstring中时(比如第二个示例),它们就被称为doctest。
This example replaces only the first 'a', so in the second example, we add the 'g' (for global) flag to cause sed to change all occurrences.
这个例子仅替换了第一个‘a’,因此在第二个例子中,我们添加了‘g’(表示全局)标记,以使sed替换出现的所有小写‘a’。
The ps commands discussed so far only list processes that were started from your terminal session (note the SID, or session id, column in the second example of Listing 14).
到目前为止所讨论的ps命令仅列出从终端会话启动的进程(注意清单14中的第二个例子的sid列,即会话id列)。
You can specify multiple classes, as shown in the second example.
就像第二个例子中所展示的那样,可以同时指定多个类。
In the second example, you use SQL to specify the data you want to export.
在第二个例子中,使用sql来指定想要导出的数据。
In the second example, it would likely be unaware of the presence of the broker.
在第二个示例中,它可能还不知道代理的存在。
In the second example, the portlet has a check mark image next to selected items.
第二个示例中,portlet在选中的项目旁有一个选择标记图像。
In the second example, the complex type, the header would be modelled in the business object editor, as shown in Figure 3.
在第二示例(复杂类型)中,此Header在业务对象编辑器中建模的情况如图3中所示。
In the second example, the variable ok is assigned a value of true if both the checked and safe variables are true; otherwise it is assigned a value of false.
在第二示例中,如果checked和safe两个变量均为True,则将变量ok指定为True,否则它被指定为False。
In the second example, the variable ok is assigned a value of true if both the checked and safe variables are true; otherwise it is assigned a value of false.
在第二示例中,如果checked和safe两个变量均为True,则将变量ok指定为True,否则它被指定为False。
应用推荐