What happens now after we've executed this third line of code, what happens next in the story?
我执行完第三行代码会发生什么呢,在这之后会发生什么呢?
whereas in college, they seem to be a little more geared towards enforcement often.
但是在大学的时候,这些政策都是要严格执行的。
So now, henceforth, when you say, to declare a function, I am declaring a function here but down here am I quote unquote defining it or implementing it.
从此以后,当你说,声明一个函数,我在这里声明了一个函数,但是到这里我定义它或执行它。
OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
The WHCF in most configurations, usually most effectively in that role, is a staffer.
白宫办公室主任在很多情况下,最充分执行职务的时候,其实是一个职员。
Human cells, most human cells, don't function very well in suspension.
人类细胞,至少是大部分人类细胞,在悬浮培养时不能很好的执行细胞功能
And then otherwise, I researched them online. I researched their CEO.
另外,当时我也在网上搜了他们的资料,查了查他们的首席执行官。
All of these with our own incredible drive to use the death penalty even when it's been recognized to have racist implications in our country.
这些问题的存在,还有实施死刑的行为,尽管我们已经意识到,在美国,某些死刑的执行暗示了种族歧视。
What is it about the thought that the computer is just following a program?
电脑仅仅只是在执行程序,这个观点到底是什么样的
The U.S. adopted the Basel requirements in 1989 and they're still enforced today.
美国在1989年采纳了巴塞尔要求,而且他们直到今天还在执行着
That is to say as a reward for bravery, exhibited bravery, the hero should be allowed to kiss anyone they like while they are on patrol, male or female.
这也就是说,勇敢的奖赏,意即展现出的勇敢,英雄应被允许在他们执行侦察时,亲任何人的嘴,无论是男是女。
in terms of enforcing the standards. And I think that,
在执行这些标准方面。而且我觉得,
Now, how does this get played out to the public?
那么这些建议在公众中被执行得如何呢
People make really stupid decisions and so as you know in this course with P sets there are three axes that we look at when evaluating your code.
人们做了一个愚蠢的决定,在这个课程上,通过习题集,当执行你的代码的时候,有三个评估方面。
So let me expand on that very slightly, and again we did this last time but I want to do one more time. I have to be careful about how I'm actually implementing a list.
我们之前做过了一次,但还是再做一次吧,我得小心的在列表中执行,例如在这个例子中。
I'm not wasting time typing out arguments and implementing more complicated function.
我不会在浪费时间在打印输出参数上,我执行了更复杂的程序。
This is code that's got to be executed before anything else happens.
这个代码是,在所有事情发生之前执行的。
So we hit the curly brace so the very bottom of the function and as soon as you hit that, the next line in the story is well, then we return to main and where are we executing in main?
我们抵达花括号了,这是函数的末尾了,一旦到了那个地方,在下一行,然后返回到main函数中,在main中哪里开始执行?
So now, in this case, this code is going to, when we get here, check, and if you haven't seen that strange thing there, that exclamation point in bang computer-ese called a bang, it says x if ANS star ANS is not equal to x, all right?
那么现在,在这个例子中,当我们执行到这里,代码会去检查,如果你没有看到过这个奇怪的东西,这个感叹号在计算机学中被叫做,代码的意思是如果ANS的平方不等于?
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
And of course, you know, when you look at code it doesn't pause in between them.
当然,你们知道的,在代码执行的时候不会暂停。
In just a couple of weeks can you start implementing things that take input from users; and if you really want to push yourselves with that particular week can you implement what we dub God mode.
几个星期之内,你就能开始执行从用户端的输入,你需要发奋苦学才能在同一个星期,实现我们的称之为God的模式。
And inside of the machine, and things we'll talk about, there is a process that will allow that sequence to be executed as described in that recipe, so it can behave like any thing that I can describe in one of those recipes.
在机器里面,还有我们要说的,里面有一个我们允许的,在方法中描述的,将要被执行的序列的过程,因此它可以像我在方法之中,描述的任意一种那样来表现。
But now I've had my fill of both and I can spend my later years, the twilight of my life, turning to the things about the gods, " performing sacrifices commanded by the gods."
但现在我已两者尽得,我可以在剩下的光阴,我的残年,转向服伺众神,执行众神所指示的祭典“
Like many cells in neurons, the shape of the cell is intimately related to its function within the organism.
同许多种神经细胞一样,这个细胞的形状和,它们在生物体中执行的功能紧密相关
printf That's not actually where someone implemented print F and related functions, rather, in dot H files, by convention, are prototypes.
那实际不是有某人在哪里执行,相关函数,而是在,h文件中,按照惯例,它们是函数原型。
With simple branching, how long is it going to take to run a piece of code?
但是在简单分支程序中,执行一个程序,要多长时间呢?
So we've embedded some error checking, if you will, into our implementations.
所以我们植入了一些错误校验,如果你愿意,在我们的执行代码里。
As an aside, if you ever just have one line of code that you want to execute, one puzzle piece in Scratch terminology, ; you actually don't need the curly braces; you only need the curly braces if you have two or more lines of code that you want to execute if that condition is true.
此外,如果你只有一行代码,需要执行,在Scratch,术语中叫做,一句代码,你就不需要使用花括号了;,如果那个条件成立,你有两行或更多行的代码时需要执行时,你就需要花括号。
应用推荐