OK. One of the other things you're going to see is that some of the operators have odd meanings.
好,你们会学会的另外一件事情,是一些操作符,有很奇怪的含义。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
为什么呢?这是因为这一块指令,指定了一系列的要进行的操作,如果测试为真的话。
So Israelite-Judean religion on the ground shared many cultic forms and practices and rituals with Canaanite and Ancient Near Eastern culture generally.
因此以色列-犹太宗教本质上来说,和迦南以及古近东时期的文化,在宗教形式、操作和仪式上有很多共同点。
Let's say you have to go through three or four operations to get a final number, well, do it algebraically.
让我们说,你不得不通过3-4个操作,才能得到最终的数,好吧,用代数方法求解。
Maybe they could make skin, maybe they could make other kinds of cells if you treated them the right way.
也许它们能生成皮肤,或者其他种类的细胞,只要你的操作恰当
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
Now, according to sort of a simple-minded view of operant conditioning in behaviorist psychology, the children you reward should do it more.
根据简单的,行为心理学的操作性条件反射观点来看,拿到奖励的小孩应该会画更多画。
I mean, to the extent that you're making these short-term bets against your long-term policy, it requires trading and trading is expensive.
我的意思是,在长期策略下进行短期操作,就需要进行交易,而交易是昂贵的
Data's what we expect. It's our way of representing fundamentally the kinds of information we want to move around.
数据是我们一直需要的,它是用来表达我们想要操作的,数据类型的基本方式,这里。
One of the advantages of this is, that I don't have to worry about explicitly updating my variable. That happens for me automatically.
这样继续下去,这样做的一个优点是,我不用为更新变量来发愁了,程序会自动的为我进行这个操作,这一点很好。
If I had lists of lists of lists, then it would only take out the first level of it.
贴到另外一个数组的后面,它当然是实现了套数组的操作。
You don't need this hack of just, like, manually adding a decimal point just to fix that problem.
你不需要这样来操作,比如,手动地加入小数点来修正这个错误。
OK, now that I've got that, we could think about what would I want to do with these points?
我也可以像以前那样,对它们进行赋值操作,好,现在我们已经有这些对象了?
It actually lets you see how to get access to that pointer so you know what you're referring to.
怎么来取得指针,以得知在对什么进行操作,但是这是个简单的设计决定。
That's why your operating systems and your personal computers often crash for no apparent reason. Just because two things happen to, once in a while, occur at the same time.
这就是为什么你的电脑或者操作系统,经常会毫无预兆的崩溃了,这是因为两件事情正好同时发生了,通常还有人工输入。
Linear algorithms tend to be things where, at one pass-through, you reduce the problem by a constant amount by one. If you reduce it by two, 1 it's going to be the same thing.
有问题么?,线性复杂度的算法,当进行了一个,常量级步数的操作的时候,将问题的规模缩小了一个。
A low-level language, we used to call this assembly programming, you're down at the level of, your primitives are literally moving pieces of data from one location of memory to another, through a very simple operation.
一个低级的语言,我们曾经将其称为假设编程,你们只是处于用基本要素,把一些数据碎片,从记忆存储器的一个地方,通过简单的操作来转到另外一个地方。
So it makes sense to be able to say, look for many methods I do want to have a way of doing comparison, and I don't have to remember, at top level, what the name of the comparison method was.
所有我需要的对象进行操作,那么就可以这么说了,我想要在很多方法里面,去找做比较的方法,我并不需要记住,每一个比较的方法的名字。
We've talked about data, we've talked about operations, and we've talked about commands or statements. All right?
我们学习过操作,我们还学习过,命令或者说是声明了,对不对?
When I try and evaluate that expression of greater than, is going to go into the class to say greater than is a comp method.
这个大于的操作符的时候,是到类的定义里去识别,大于是一个比较的方法,那么让我在这里说仔细一点吧。
Exactly, so you might have been thought especially in years past to defragment, so to speak, your hard drive once in a while.
你可能认为需要进行,碎片整理这种操作,也可以说硬盘驱动器有时需要你这么做。
I've got one test there, and then I've just got one thing to do here, which has got a subtraction and a multiplication.
这儿有一个比较,然后在一个基本步骤里,做了一个减法和一个乘法两个基本操作。
You don't see strings with commas between them, but it has the same kind of property. It is in ordered sequence of characters.
它是有序的字符序列,我们可以对字符串做同样的操作,我们也可以得到字符串中的一块。
We said each of the merge operations O was of order n. But n is different. Right?
注意这里发生了什么,我们说过每一次合并操作的复杂度都是?
I think market timing,as I've defined it, has to do with short-term deviations from your long-term policy targets.
正如我之前定义的,市场时机选择,是偏离长期策略目标的,短期操作
I can do lots of things with these, and you'll see that as we get to future assignments we'll make heavy use of dictionaries.
我们可以利用这一点来做很多操作,而且以后我们做作业的时候,我们会用到很多字典相关的东西。
It has a test in it, which is that while, while something is true, do something, but I want to keep doing it.
也有个测试在里面,也就是那个当,当一件事情为真的时候,做一些操作,但是我想一直进行判断。
And if you think about it, associated with each - one of those data types is a set of functions it's intended to apply to.
你会发现每个类型都有,与之对应的一个集合的操作,有的时候这些操作,有的时候某个操作可以,应用于多种数据类型。
And one of the things neophytes trip over early on is that we'll soon see there's not only an equal sign operator, there's equals equals.
这样我们还要引入了一个新的操作符,我们将看到这里不仅有一个等号的操作,还有双等号。
x Inside of that structure, create a variable name x, and a value associated with it.
创建了一个变量名为,然后给它赋值,请注意我也在这边做的操作。
应用推荐