• The All Ethiopian Unity Party led by Hailu Shewal is the one signatory to the Code of Conduct widely acknowledged as a legitimate independent political force.

    VOA: standard.2009.11.01

  • All right, those pieces of code inherently involved something that does depend on the size of the input, or on the particular input.

    好,这些代码,肯定会涉及到一些,与输入的大小相关的东西,或者说与特定输入相关。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right, you can see that this little piece of code, it's got a loop in there, and what's it doing?

    好,你们看到的这一小块代码,是做了一个循环吧?,他在做什么?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • "It is a tax code that makes it all too easy for a small number of individuals and companies to abuse overseas tax havens to avoid paying any taxes at all,"

    VOA: standard.2009.05.04

  • So when you define a function, you have, as we've seen these curly braces, that define all ; of the code that's associated with that function; open curly brace code, close curly brace, that is the function.

    当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。

    哈佛公开课 - 计算机科学课程节选

  • And the answer is, although neurons are all or nothing, there are ways to code intensity.

    答案就是,尽管神经元服从全或无法则,但仍有许多因素会影响神经元的反应强度

    耶鲁公开课 - 心理学导论课程节选

  • And they're awfully simple because, all I can do now, is decide whether to execute some piece of code or another.

    它们之所以太简单的原因是:,现在我能做的,就是,决定执行一块代码或者执行另外一块。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.

    然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Let's assume, for sake of argument, the thing I'm looking for is bigger than this. In that case, I'm going to throw away all of this, I'm going to hit that bottom line of that code.

    让我们假定不是,假定要找的元素,比这个大,在这样的情况下,这些都擦掉,我要运行到代码的最后一行。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Code is right here. And all it's doing is when I'm getting into the different places I'm simply printing out information about where I am. What I want you to see palindrome is notice what happened here.

    代码就在这儿,它的作用是当我运行到不同地方时,就输出我所在方位的信息,我想让你们看的就是注意这儿发生了什么,好了我调用了一个。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right so-- yeah, how do I get to the code for that? That's interesting.

    噢,我是怎么写出这个的代码,这件事儿挺有意思的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Imagine instead, you're writing code that's a hundred thousand lines, a million lines, of code. You don't want to write it in this form. All right, and the reason you don't want to do that is, well, several.

    换一个角度来思考,你正在写的代码有几十万行,近百万行,你绝对不想写成这种格式,好吧,你不想这么做的原因有以下几个。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right. So now, we've got it I've got the code up for you.

    好,现在我们已经明白这一方法了,现在让我们来看看代码。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • You can imagine having many lines of code where all of a sudden your closed quote is on the next line all the way on the left.

    你可以想象一下,这有很多行代码,突然一个后引号,移到下一行最左边。

    哈佛公开课 - 计算机科学课程节选

  • All right. What does this piece of code say?

    好,这段代码什么意思呢?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • OK. Let's simulate the code. Let's see what it's doing here. All right, so we start off.

    让我们看看这里到底做了神马?,好的,我们开始吧。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.

    首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So let's look at the second example, all right, I keep doing that -- this piece of code from here to here gives me a way of now creating a hash table of size 256.

    所以让我们来看一下第二个例子,好的,我继续做那件事,这段代码中从这里到这里,是创建一个大小为256的哈希表。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Pseudo code. Now, you're all linguistic majors, pseudo means false, this sounds like code that ain't going to run, and that's not the intent of the term. When I say pseudo code, what I mean is, I'm going to write a description of the steps, but not in a particular programming language.

    伪代码,基于你们都是学语言的,伪代码意味着不正确,这听起来就像是没法运行的代码,这可不是我们学这个的目的,当我说到伪代码的时候,我的意思是要对步骤进行一个描述,而不是某种特定的编程语言。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right. Simulate the code.

    现在他们不这么认为了。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?

    完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And if it sees S-W-A-P, open parentheses, close parentheses, and it hopefully sees two ints inside of it, that's all it needs to do in order to finish compiling your code.

    如果它看到了SWAP,左圆括号,右圆括号,它可能载里面看到两个int数,那是它所需要做的,用来完成代码的编译。

    哈佛公开课 - 计算机科学课程节选

  • OK, let me comment this out, and let's look at this next little piece of code. All right.

    好,让我添加一点注释,然后让我们看看,下面的一些代码,好。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • All right, so let's look at the code for that.

    好,让我们看看代码。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Spelling. These are just dumb little things to look for. Did you spell all the identifiers the way you think you did. The problem is, when you read code you see what you expect to see.

    拼写错误,你可能得找找这些粗心的小错误,你是否拼对了标识符,问题是当你阅读代码的时候,你看到的都是你以为的。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Meaning, I'm just going to write a little loop that does that. All right, so let's go back to our code. That's right, let me pull this over a little bit, so I can see it. And what I'd like you to look at, I'm going to highlight it just for a second here, is those two pieces of code.

    意思就是我只需,写一个小循环就可以了,让我们回到代码,让我们向下拉一点,我才看得见,我希望你看看这里。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • hi3 And then all of these other white files are just source code files, dot C file.

    就是绿色的。,Hi3,is,green。,而其他部分白色文件都是些源代码,都是,c文件。

    哈佛公开课 - 计算机科学课程节选

  • b Star B in the last line of code now means find B, 1 2 3 all right, that's 1, 2, 3.

    在最后一行的*b意思是查找,好的,那是。

    哈佛公开课 - 计算机科学课程节选

  • What's the point? Again, you can have things that are syntactically legal but not semantically meaningful, and static semantics is going to be a way of helping us decide what expressions, what pieces of code, actually have real meaning to it. All right?

    重点是什么?重申,你可以有东西在语义结构的逻辑上有意义,但是在语义上无意义,而static语义,将是一个帮助我们,决定哪些表达,哪部分的代码实际上,有意义的途径,好么?

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定