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列)。
So, for example, in the second case, we say that we see 12 06 in terms of the kinetic energy.
比如,在第二种情况下,我们观测到,1206大小的动能。
And I'm going to show you an example in a 1 second, just to drive this home, but notice the characteristics. In the first two cases, the problem reduced by 1 at each step.
在前面两个例子里,每一部问题的规模缩小了,不管是迭代的还是递归的,这表明这个问题的复杂性可能是线性的。
If you see a problem that asks you, for example, the third ionization energy versus taking a second electron out of the 2 s in a photoelectron spectroscopy experiment, those are two very different things.
如果你遇到一个题目问你的是,比如说,是第三电离能,还是在光电子能谱实验中从,2,s,轨道中,拿走第二个电子,这可是两个完全不同的问题。
应用推荐