• But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.

    但是输入不是浮点数的话,我这里就会显示一个消息说,搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。

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

  • You can say if this is true, then go and do the following pieces of code or puzzle pieces that are inside this part of the block, else go ahead and do these that are down here.

    可以说如果条件成立,执行下面的代码段,或板块中的拼图,否则跳过去执行这下面的语句。

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

  • So your position may be not believed, and I want to claim that that's connected to the idea that you can't commit yourself to your policies.

    也就是说选民未必相信的立场,我要指出的是这与,无法执行相应政治策略是相关的

    耶鲁公开课 - 博弈论课程节选

  • Is it some kind of procedure standard operating procedure that you follow?

    是不是有一定的程序,标准的执行程序呢,然后就按照那个程序?

    普林斯顿公开课 - 国际座谈会课程节选

  • Towards semester's end you will have the opportunity to choose a project to work on, choose a project that is entirely of your own choice to execute.

    接近学期结束时,们将有机会选择一个项目来做,一个完全由自己选择执行的项目。

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

  • Thus far and in Scratch will pretty much focus on the idea of correctness: Does your code work as we asked it to and as you intended it to?

    至此,人们大都是把注意力集中于正确性,观点上:的代码是不是根据的意愿,并按照的要求来执行呢?

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

  • up employing something called programming, the act of constructing, telling a computer to do your bidding.

    们会使用一种叫做程序设计的方法,或称之为构建,即让计算机去执行的命令。

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

  • So we've embedded some error checking, if you will, into our implementations.

    所以我们植入了一些错误校验,如果愿意,在我们的执行代码里。

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

  • If you find a matching sock which you didn't so then else.

    如果找到相匹配的袜子就执行接下来的代码,否则就执行其他。

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

  • So this program, if you run it based on intuition or little cheat sheets in front of you, what is this program ultimately going to do for me?

    所以这个程序,如果按照的直觉,或们面前的备忘单来执行它,这个程序最终会为我做什么?

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

  • Now this is not a particularly compelling pace just yet of implementing your own function.

    这里没有一个特别的强制性的步骤,来执行自己的函数。

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

  • 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 in your mind, if you are now the computer program and you are executing this thing from top to bottom, what just has happened verbally is we are stepping into the line of code that says sort left half of elements.

    们看来,如果现在是计算机程序,正在从上到下执行一系列指令,刚才所发生的就是我们现在已执行到了这行代码,它告诉要对左半部分的元素排序。

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

  • It's a little puzzle piece that says when the green flag is clicked and this is kind ; of like the beginning of a program; when you double click an icon on your desktop this is how something like that is implemented; it's listening for that double click, it's listening for that green flag.

    是一小个按钮,它的意思是,何时点击绿色旗帜,这就好比开始运行程序;,当双击桌面上的图标,就开始执行操作,桌面的图标需要双击,绿色小旗也等待点击来执行命令。

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

  • You can certainly implement your own.

    当然也可以执行自己的函数。

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

  • 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的模式。

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

  • It takes an int; deal with it when you get to it and then once you look through the whole file, should you find -- ultimately find the actual code that defines or impliments this thing.

    它携带一个int数,当获得了它就处理它,然后一旦查看整个文件,最终将发现实际代码中,定义或执行了这个东西。

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

  • In Scratch you may have realized that, "I could implement my program this way with these puzzle pieces, but it kind of feels -- like I could use these puzzle pieces instead" -- that's absolutely the case in programming.

    在Scratch中可能已经意识到,“我可以用这一段代码来,执行我的程序,不过这有点感觉到,我可以用这些代码段来代替“,那绝对是编程中的一个情况。

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

  • 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的平方不等于?

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

  • At the end of the day, you can implement the exact same program using a while loop that you can using a for loop, it's just your code is going to look slightly different.

    最终,可以执行这个程序,再使用for循环的地方使用while循环,这只是使的代码看起来稍微有点不同。

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

  • Go ahead and implement with the person next to you a program that takes as input from the user an integer called F and prints out the answer of the Celsius equivalent.

    继续和旁边的人执行程序,取来自用户的整数F作为输入,然后打印出与之等价的摄氏温度的答案。

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

  • But as soon as the most recently called function finishes executing, you have to take that tray off the stack in order to get at the previous function's memory, and once he's done executing, you have to take that one off and then what's left well then main.

    但是,一旦新的调用函数结束了执行,必须从堆中把托盘拿掉,用来获得先前函数的内存,一旦他完成执行必须把那一块拿下来,然后剩下的是main函数。

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

  • So conceptually the key difference here, besides the syntax looking slightly different, it just means that if you want a chunk of code to execute no matter what initially, ; you can use the do while loop; if you want to check a condition first, you can use the while loop.

    所以概念上,则关键的区别是,除了语法看起来有点不同,它的意思是如果想要一段代码,最初无论如何都要执行就可以用do,while循环;,如果想要先检查条件,可以用while循环。

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

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

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

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

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

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