• Mayday is an emergency code word.

    VOA: special.2010.04.18

  • Because I might have written some code in which I'm expecting that integer particular variable to have an integer value.

    因为我可能写了一些代码,来把一些,变量的类型,指定为。

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

  • We want to write a piece of code that helps these guys out, so I'm going to show you an example.

    通过写一段代码,来解决一个这样的问题,接下来让我们来看个例子。

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

  • Islamic leaders said the new code contains provisions that are an affront to the country's traditional values and religious beliefs.

    VOA: standard.2009.08.27

  • The code is unusually conspicuous, complex, and enigmatic; it attracts an inordinate amount of attention to itself, and this attention has to acquire the rigor of a method.

    这种代码通常很显著,复杂,神秘;,它把大量的注意力都吸引到自己身上,这种注意力得有一种方法的严肃性。

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

  • They were tribal members who came up with an unbreakable code in their complex language that was adopted by American forces in the Pacific during World War II and used to confound the Japanese.

    VOA: standard.2010.03.22

  • So this we would want to delete in order for the code not to run the risk of crashing, but let's now see this was made by an excellent teacher out at Stanford University.

    我要按顺序删除它,不要冒崩溃的风险,但是这个是由一个来自斯坦福大学的,优秀教师做的。

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

  • Honor to so many of us sounds quaint, like an honor code or the Boy Scouts' code or something like that or something primitive, some kind of primitive ethic which we therefore don't really understand.

    荣誉,对我们中大多数而言,听起来都会很奇怪,这就像是在说荣誉代码,童子军守则或一些类似的东西一样,亦或是一些非常原始的理论,以致于我们根本不知道这是在说什么。

    耶鲁公开课 - 政治哲学导论课程节选

  • It's more complicated in making protein from an RNA strand and that complication is called the genetic code.

    而从一条单链RNA翻译为蛋白,这个过程更为复杂,称之为遗传密码

    耶鲁公开课 - 生物医学工程探索课程节选

  • But the things we were trying to stress were that it's an important design decision when you are coming up with a piece of code, as to what kind of efficiency your code has.

    但是我们这里要强调的是,当你写代码的时候,决定你的代码的效率的很重要的事情,就是你的设计决定。

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

  • OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.

    好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。

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

  • What does that say? It says if in the code up here I get an exception of that sort, I'm going to go to this place to handle it.

    这意味着如果在代码中,我得到一个这样的异常,我能到这里来处理它。

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

  • 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?

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

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

  • So a couple of commands and then an interesting code and then the teaser, that's a teaser.

    总结起来,就是几个命令,一个有意思的代码,然后是那个小技巧,那是一个小技巧。

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

  • an interpreted language is often easier to debug, because you can still see your raw code there, but it's not always as fast.

    解释语言调试起来很容易,因为你可以看到最原始的代码,但是这种语言不够快。

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

  • But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.

    就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。

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

  • That code says the following: the IF says, I've got an expression, I'm going to evaluate it.

    代码的含义是这样的:,我有一个表达式,我会去对这个表达式求值。

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

  • And so what I was hinting at earlier when you put semicolons in the wrong place, and then proceed to have curly braces around arbitrary lines of code, you're creating an even more local scope there, which is generally not the right intended behavior.

    在之前我暗示了,当你把一个分号放在错误的地方时,然后开始用花括号,括上任意行的代码,你在那里创建了一个局部范围,那个不是故意的行为。

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

  • But now, there is an opportunity for us to implement this in code.

    不过现在,我们有机会,用代码实现它。

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

  • 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,术语中叫做,一句代码,你就不需要使用花括号了;,如果那个条件成立,你有两行或更多行的代码时需要执行时,你就需要花括号。

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

  • So in other words, if you terminate these lines early, if you terminate the four loop early, if you terminate an if condition early with that semicolon, the code may very well work; and this is a common source -- of frustration and conundrum because you don't -- because your code looks right and yet it's misbehaving, but that semicolon means stop looking for subsequent lines of related code.

    换句话说,如果你用分号过早的终止了这些代码行,如果你过早地终止了那个for循环,如果如此,一个if条件,代码可能可以运行,这就是,挫折和问题产生的源头,因为你没有-,因为你的代码看起来是正确的,但是运行是错误的,那个分号的意思是,停止寻找后面相关的代码。

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

  • So here is the simplest program which is perhaps an ironic statement that you can implement with this language called C. So it takes a few lines of code to actually get something up and running and as you'll recall last Friday, I didn't even get this up and running because part of the process of writing a program is to one, write it.

    让我们回到这个最简单的程序,你们也许觉得啼笑皆非,这么简单的例子,用C语言写出来就可以了嘛,的确只需要几行代码,就可以让这个程序跑起来,就像上周五的那样,我之所以没让它跑起来,因为编程步骤之一,就是“写“

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

  • In a compiled language, you have an intermediate step, in which you take the source code, it runs through what's called a checker or a compiler or both, and it creates what's called object code.

    而在编译语言里,你就会经过一个中间的步骤,在这种语言里输入源码后,先经过过滤器,或者编译器检查后,它会创建一个叫做目标代码的东西。

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

  • I'm much better having an exception get handled at the time of input than to let that prop -- that value rather propagate through a whole bunch of code until eventually it hits an error 17 calls later, and you have no clue where it came from.

    不是我期望的格式,这时我最好有一个异常处理,而不是让其传下去,这个值传到代码的整个分支,最终会导致一个错误17调用的发生,并且你不知道这个错误是哪里来的。

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

  • Now, efficiency is obviously an important consideration when you're designing code, although I have to admit, at least for me, I usually want to at least start initially with code that works, and then worry about how I might go back and come up with more efficient implementation.

    现在,当你设计程序的时候效率,是不得不考虑的问题,虽然我必须承认,至少对我来说,我是先担心程序能不能运行,再去把它的效率优化的,我喜欢可靠点的东西。

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

  • What that basically says is the following: in an interpreted language, you take what's called the source code, the thing you write, it may go through a simple checker but it basically goes to the interpreter, that thing inside the machine that's going to control the flow of going through each one of the instructions, and give you an output.

    也就说,如果是解释语言的话:,你要写一些叫做,源码的东西,你写的东西会经过一个简单的过滤器,然后解释器会处理你的源码,解释器会产生一个,逐条读取你的源码的,控制流,然后返回一个输出结果。

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

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

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

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