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

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

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

  • So things break if you try-- if the computer tries to take you too literally so it would not be correct generally to do something like that.

    如果你把它分开-,那么电脑会逐字逐句地解析,你拆开写的代码,由此得到的结果一般都是错误的。

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

  • OK, what I would like you to see is I've been printing out, as I went along, actually let's back up slightly and look at the code. There's merge sort.

    好的,我想让你们看就是我运行过后,打印出来的结果,我们再回头看一下这段代码,这就是归并排序,输入一个列表。

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

  • And I'll sit there staring at the output, staring at the code, not realizing that that output was not produced by that code.

    然后我就坐在那儿盯着输出的结果,看着代码,没有意识到输出的结果,并不是由我的代码产生。

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

  • What I mean by that is, pick a simple set of values, and let's walk through it to see what happens. And this is useful because it's going to allow me to A make sure that I've got something that's going to terminate, it's going to let me make sure that in fact I'm doing the right kinds of updates.

    原因你们知道的,好,模拟代码,我的意思就是,选出一系列的值来,然后模拟下代码的执行来看看结果,这很有用因为这让我确保我的程序在某个地方,可以终止,还会让我确保实际上我。

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

  • And we must know what the result is supposed to be. Typically when you run an experiment, you say, and I think the answer will be x.

    这样我们可以来查看代码的进程,我们还必须清楚结果应该是怎么样的,比如当你运行一个实验的时候。

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

  • And I've put it in my debugging code.

    调试的代码中去,然后运行看看结果

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

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

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

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