Why? Because that block identifies a set of things that I'm going to do if the test is true.
为什么呢?这是因为这一块指令,指定了一系列的要进行的操作,如果测试为真的话。
Data's what we expect. It's our way of representing fundamentally the kinds of information we want to move around.
数据是我们一直需要的,它是用来表达我们想要操作的,数据类型的基本方式,这里。
So it was a little risky but safe in the end because I didn't do anything else with it.
所以它有点冒险但是最终是安全的,因为我没用它做其它的操作。
Maybe they could make skin, maybe they could make other kinds of cells if you treated them the right way.
也许它们能生成皮肤,或者其他种类的细胞,只要你的操作恰当
Now, according to sort of a simple-minded view of operant conditioning in behaviorist psychology, the children you reward should do it more.
根据简单的,行为心理学的操作性条件反射观点来看,拿到奖励的小孩应该会画更多画。
As carefully as people work with radioactivity here, and using often much, much safer radioactive materials than radium bromide, and using them, and special hoods, and having special procedures, they still do a lot of checking with these Geiger counters to make sure everything's safe.
虽然在这里人们,用放射性物质都非常的小心,而且通常用的材料放射性,都比溴化镭要小得多,并且用的时候,都用特殊的容器,特殊的操作过程,但我们平时仍会用。
That's all I have to do and I have locked in the interest rate.
以上是我为了确定利率而进行的操作
How does it operate?
这个祭祀是怎么操作的呢?
On Thursday, we'll look at why that allows you to do lots of things more conveniently than you can do without mutation.
周四我们会探讨下,为什么这种可变性会让你,在进行很多操作的时候方便了许多。
Or take this value out of memory, run it through some other simple operation, stick it back in memory.
或者从记忆存储器中取出一个结果,在类似的操作中运行,再插回到存储器中。
If I had lists of lists of lists, then it would only take out the first level of it.
贴到另外一个数组的后面,它当然是实现了套数组的操作。
A log algorithm typically is one where you cut the size of the problem down by some multiplicative factor.
对数级复杂度的算法就是指,通过一系列常量级步数的操作,可以将问题的规模。
Well, the assignment operator makes a copy of the thing on the right and puts it in the thing on the left.
赋值操作符把右边的东西,复制到左边。
So, to illustrate Skinnerian theory in operant conditioning, I'll give an example of training a pig.
为了说明斯金纳的操作性条件作用理论,我会给大家举一个训练猪的例子。
We can do the same thing for the other observed kinetic energy.
我们还可以对观测到的,其它动能进行同样的操作。
We have a one hour section that's designed to give you some more detailed experience, some hands on experience with some of the topics we're talking about.
有个维时一小时的环节,用来给你们增加更详细的经验,一些实验操作方面的经验,有关我们讲过的内容
We saw last time that there is this remainder operation.
我们上次看到,这里是剩下的操作。
We want to create data types and functions, or we're going to call them methods, that are specifically aimed at manipulating those kinds of objects.
它们是特定的,用来操作那些对象的,我们的目标基本上来说,就是会去看看怎么去构建,能利用这种模块话。
We saw, associated with that primitive data, we have ways of taking data in and creating new kinds of data out, or new versions of data out, so we have operations.
我们可以取得输入的数据然后,创建新的类型的输出数据,或者新的版本的输出数据,这就是我们说的操作。
Now, suppose in fact these weren't x and y glued together, these were radius and angle glued together.
我实际也说过了,我在这里操作的是,和这两个点。
And so the program may do different things on different runs. We'll see a lot of that, because it's used a lot in modern computing.
因此程序会对不同的输入做不同的操作,我们会看到很多这样的情况,因为它在现代计算中被广泛应用。
We're going to build up this taxonomy if you like, but the reason it's relevant is, associated with each one of those types is a set of operators that expect certain types of input in order to do their job.
我们将会建立这种分类,但是这相关的原因是,对于每种类型都有,和之对应的一个操作集,这个操作机对一些输入,做出规定的操作。
So the point is, there is something here called operator precedence, which is what the gentleman said.
这里我要说的就是,这里有个,叫做操作优先的规则,也就是刚才那位先生说的。
If you give me a number and a string, I'm going to concatenate them together, it's really different operations, but nonetheless, it's what it's going to do.
如果给的输入是一个数字和一个字符串,我将会把它们连接在一起,这实在是不正确的操作,但是无论如何,它就是会去这么做。
In a particular, I have similar operations on strings.
尤其是我可以对字符串使用类似的操作。
And that operation is being performed before others.
并且那个操作是在其它操作之前的。
And there are some built into Idol.
还有一些内置的操作层。
So it's doing something underneath the hood.
它会在后台运行一些的操作。
It could be, preconditions I want to have on input It could be, explanations of specific things you're doing.
也可以是我对输入的预期是什么,也可以是,对代码,正在进行的特定操作的解释。
And the nice thing is that there's a shared behavior there. Just as I can have tuples as an ordered collection of things, strings behave as an ordered collection of things.
共享的行为,就像元组是有序的元素序列,字符串也是有序的元素序列,因此我可以对字符串做同样的操作,我可以把它们连结起来。
应用推荐