So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.
一般而言,当你运行命令行程序时,可以把把这些当做输入,像什么参数啊,或开关啊,或标志啊等等。
In other words it doesn't just return when it finds one, it's going to run through all of them. All right?
但是它将会继续运行,换句话来说当它找到一个结果时,它不会立刻返回结果它会先遍历所有的内容?
Likewise, when in outer space, when you are orbiting the Earth, people are always floating around in these space stations.
就好比在外太空,当你在绕地球运行时,宇航员总是悬浮在太空站
When the program is on your computer you say dot slash and this means on my computer.
当程序位于你的电脑上时,敲入,就意味着在我的电脑上运行。
We're left with the central banking institutions that are now functioning without convertibility to gold.
我们现在与那些,现如今运行时没有金子转换功能,的中央银行机构打交道。
And yet get a valid test. Sometimes it can be timing. If you're running multiple processes.
有些时候当你运行多线程时,是因为时间的原因。
But at the end of the day, and here's why we just went with binary and not decimal years ago, when you have one implement a computer with a physical device, it's actually really easy to represent the notion of on or off.
但是最终,之前我们采用二进制,而不是十进制,主要是因为当我们用一台实体机器运行计算机时,这实际上很容易用开或者关的概念来表示。
And when I ran that it, I got weird results, 300 because we know that a Google priced at, say, 300, is much more likely to move by 10 points in a day than a stock that's priced at $0.50.
当运行这个程序的时我得到很奇怪的答案,因为我们知道一只谷歌的股价大概是,对一个0。5美元的股票来讲,每天改变10个点才比较正常。
This code does swap the two values, A and B. However, when I run this program, something happens.
这个代码没有交换那两个值,A和B,但是,当我运行这个程序时,有些事情发生了。
In general, when we wanna talk about running time, we just need a silly place holder, so we'll call it T for time.
一般情况下,当我们讨论运行时间时,需要一种表示方法,这里T表示时间。
I'm thinking about a problem, I'm going to show you an example in a second, first thing I'm going to do is say, what is the thing that's going to change every time I run through the same set of code?
我要解决一个问题,我马上会让大家看一个例子,第一件我要做的事情就是,弄明白每次运行同样的指令集时,每次都会改变的东西是什么?
What I don't want your program to do is crash when that happens. Or run forever.
当这种问题出现时程序崩溃,或者一直运行下去。
Initialization. A very common bug is to initialize a variable. Go through a loop, and then forget to reinitialize it when it needs to be reinitialized again.
忘记初始化,忘记初始化变量是一个很常见的错误,运行完一个循环之后,当需要再次初始化时。
应用推荐