• So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.

    一般而言,运行命令行程序时,可以把把这些做输入,像什么参数啊,或开关啊,或标志啊等等。

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

  • In other words it doesn't just return when it finds one, it's going to run through all of them. All right?

    但是它将会继续运行,换句话来说它找到一个结果时,它不会立刻返回结果它会先遍历所有的内容?

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

  • So that's the only change we need to make there and watch what happens when we actually run this.

    那就是我们需要改变的,并且我们运行它,会发生什么事情。

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

  • Likewise, when in outer space, when you are orbiting the Earth, people are always floating around in these space stations.

    就好比在外太空,你在绕地球运行时,宇航员总是悬浮在太空站

    耶鲁公开课 - 基础物理课程节选

  • Once an invention is seen to work it is rapidly copied around the world.

    一种创新品运行顺畅的时候,就会在世界范围内被模仿

    耶鲁公开课 - 金融市场课程节选

  • What should we say about Phase A, when the body is turned on and functioning,developing, but the brain has not yet gotten to the stage at which it's turned on, or perhaps it hasn't yet become, well,it's not doing person functioning.

    我们对A阶段又该做何解释呢,身体开始运行发展,但大脑还未到达开发的阶段,或者说这阶段尚未到来时,并没有人格功能的产生。

    耶鲁公开课 - 死亡课程节选

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

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

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

  • And yet get a valid test. Sometimes it can be timing. If you're running multiple processes.

    有些时候运行多线程时,是因为时间的原因。

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

  • And so when I run this program, nothing all that interesting happens.

    所以运行这个程序,没有什么会发生。

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

  • Or, said a different way, what's going to happen when I run it?

    或者,用不同说法来讲就是,运行它的时候会发生什么?

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

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

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

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

  • OK. All right, let me show you one other tool that I want to use. Which is, I've written that piece of code, I ought to check it. Well, I could just run it, but another useful thing to do is, I'm, especially as I want to debug these things, is to simulate that code.

    好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是我想要调试代码的时候。

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

  • When I ran it up here, with the old Fib, and we printed the result, and I ran it with Fib 1 down here.

    运行到这里,也就是老的Fib函数,我们打印这个结果,我在下面调用Fib1时,也打印了结果。

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

  • But at the end of the day, and here's why we just went with binary and not decimal years ago, when you have one implement a computer with a physical device, it's actually really easy to represent the notion of on or off.

    但是最终,之前我们采用二进制,而不是十进制,主要是因为我们用一台实体机器运行计算机时,这实际上很容易用开或者关的概念来表示。

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

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

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

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

  • Like, number of-- wait, what did we call a were solve-- number of legs and number of heads. OK, those are bound locally.

    我们把solve称为--一些腿和头,它们都是局部赋值的,solve运行完后它们被包裹起来。

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

  • When you want to use a library like CS50's, you can't just run GCC on your program.

    你想使用一些CS50的库,不是只运行GCC就够了。

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

  • So if your word game doesn't work when the words are 12 letters long, instead of continuing to debug 12 letter hands see if you can make it fail on a three letter hand.

    因此如果你的单词游戏输入单词,有12个字母的时候没法运行了,看看输入三个字母的单词它,能不能正常运行吧。

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

  • I'm going to print here the list if we go into it, and print of the when we're done and then just return that.

    注意接下我来我要做的事,运行到这里时会打印列表,并且处理完成后会打印返回的列表。

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

  • What I don't want your program to do is crash when that happens. Or run forever.

    这种问题出现时程序崩溃,或者一直运行下去。

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

  • Initialization. A very common bug is to initialize a variable. Go through a loop, and then forget to reinitialize it when it needs to be reinitialized again.

    忘记初始化,忘记初始化变量是一个很常见的错误,运行完一个循环之后,需要再次初始化时。

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

  • When I run it, what's going to happen?

    运行它的时候,会发生什么?

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

  • In general, when we wanna talk about running time, we just need a silly place holder, so we'll call it T for time.

    一般情况下,我们讨论运行时间时,需要一种表示方法,这里T表示时间。

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

  • And then you can delete it once you're sure your code is working right.

    你们能够确定你们的代码运行正常的话,你们可以把这个“printf“,语句删除掉。

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

  • Always guess before you run your program what you think it's going to do.

    运行程序之前,总是先想想程序会怎么做。

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

  • 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 when I ran that it, I got weird results, 300 because we know that a Google priced at, say, 300, is much more likely to move by 10 points in a day than a stock that's priced at $0.50.

    当运行这个程序的时我得到很奇怪的答案,因为我们知道一只谷歌的股价大概是,对一个0。5美元的股票来讲,每天改变10个点才比较正常。

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

  • But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.

    加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。

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

  • This code does swap the two values, A and B. However, when I run this program, something happens.

    这个代码没有交换那两个值,A和B,但是,运行这个程序时,有些事情发生了。

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

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

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

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