• So, inside of code, or inside of a script, there's no print, unless we make it explicit.

    因此,在代码里面,或者在脚本里面,不会有显示结果的功能,除非我们让它这么做。

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

  • What are the basic modules, what information needs to be passed between those modules in order to make the code work.

    基本的模块是哪些,为了让整个程序正常运行,这些模块之间需要传递的信息有哪些。

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

  • If you want to make sure both conditions are true and they both have to be true for any code to be executed, use ampersand ampersand.

    如果你想保证两个条件都成立,或者它们两个都必须为真值,才能执行一些代码,那就使用“&&“

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

  • We won't make you write dramas like Pirandello, but we're going to try make you at least write good code.

    我们的函数中的东西,我们不会让你去写皮兰德娄的荒诞剧,但是我们会教你写漂亮的代码。

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

  • And just to look ahead a little bit, you could easily imagine that I might want to not just put a statement in there, what the specs are, I might want to put some constraints. Some specific things to check for, to make sure that you're calling the code right.

    这不仅是抽象的概念还有规范的概念,我们再往前看看,你可以简单的想象得到,我不仅仅是想在这里加一个声明,这些规范说明中我还想加一些约束,我们要注意一些特殊的事情。

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

  • Give you some examples. What have we talked about? We've talked about things like using comments to highlight what you're doing in the code, to make it easier to debug.

    给大家举些例子,我们一直在强调什么来着?,我们讲过要用注释来说明,你在代码中进行的操作,以便于调试。

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

  • OK. Note, by the way, if I chase through each possible path, like there's some IFs in here, if there's some places to go, at least in this piece of code, every possible path through this code ends in a return. And that's a good programming discipline, to make sure that happens.

    注意一下,如果我跟进每一条可能的路径,像是这里的,起码在这段代码中就有很多走向,这段代码中的每一条可能路径,在结尾都会返回一个值,这就是一条很好的编程定律,请确保这样做。

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

  • And this starts to make our code more readable, more elegant, just a little more compact.

    这个使我们的代码变得更易读,更优雅,更简洁紧凑一点。

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

  • To use an ancient expression from the 1970's, which only John and I will appreciate, it's really hard to grok what that code is doing, to understand what it's trying to make happen.

    我和约翰都会同意,70年代的一句话来概括,那就是很难理解编码的内容,以及它想要完成的工作。

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

  • And the second thing that we talked about is this idea that we want you to in fact learn how to relate a choice you make about a piece of code to what the efficiency is going to be.

    关于这个方法第二件事,就是我们实际上希望,你在写代码的时候,能做出优化效率的选择,因为此。

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

  • By the time you get to the end of the term, you're going to be dealing with some fairly complex things, so one of the things you're going to see is, we're going to make heavy use of libraries, or code written by others.

    当你临近期末的时候,你们将要解决一些,相当复杂的难题,因此你们将会看到的其中一点是,我们要充分利用图书馆,或者别人编写的代码。

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

  • If I decide there's a better way to get input, and there is, then I can make it to change what I don't have to change the code that uses the input.

    如果我觉得有更好的获取输入的方法,我可以直接改去用这种方式,而不用更改使用了,输入处的代码。

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

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

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

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