• So let me just to try something a little more interesting, and then we'll get to writing some simple programs.

    让我们来试试更加有趣,一些事情吧,然后,我们再去写一些简单的小程序

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

  • So, if you're a small college with only $20 million in a portfolio you don't come across as a qualified purchaser.

    因此,如果是一个,只有2000万资产组合的小学院,是不能通过合格购买者审核程序

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

  • I want the function, which is a little tool, a line of code I can include in my own programs and generally those tools live in sections two or three of the manual.

    我想要一个函数,那是一个工具,在我程序中可以包含一行代码,通常这些工具在手册第二节,或第三节。

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

  • And again, very much in the same style of the quizzes All right, let's look at this.

    但是还是和测验形式差不多,好了,我们来看到程序

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

  • You can kind of see where the syntax is going, looks like a loop, but you can kind of put blocks inside of you, and the little arrow suggests that once you get to the bottom just like our socks example, you're gonna do the following again.

    从某种程度上你可以看到它语法构成,像个循环,你也可以把,一些程序块放到循环中,如同短袜例子,这个箭头暗示你一旦到达底部,你将会重复接下来事情。

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

  • So I wrote a little program called "chart" that, based on some data I happened to hardcode into the program, shows us their numbers for the past several years.

    我写了一个叫做“图表“的小程序,基于我在程序中硬编码一些数据,向我们显示在过去几年中我们课程人数。

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

  • So I am going to on the fly write a very simple little main program that just illustrates some of the syntax that we can then visualize more interesting.

    我很快写了一个很简单地小程序,来说明一些语法,我们使它变得更有趣些。

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

  • So writing a program at least in this language is a two-step process.

    用这种语言写一个至少需要,两步完成的小程序

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

  • So let me give you an example of a piece of imperative knowledge.

    所以让我给你一个,程序性知识的小例子。

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

  • So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.

    好,为了来认识到这一点,让我们来看一个简单的小例子,在你们课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里第一片,代码意思是,好给我两个点,我会再创建一个数组。

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

  • You can even implement your own versions of some of the most popular console games today for which I need another volunteer.

    现在你就可以编写程序,把当下最流行控制台游戏,改造成自己版本,现在我需要再上来一名志愿者。

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

  • That little problem set zero that you did.

    你做过那个设置0的小程序

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

  • And so very often I would find myself with gigabytes worth of data, at night I needed to analyze this data and look for this patterns and frankly the reality was sometimes I could spend 10-15 minutes whipping up a little script, a little program that unfortunately would take eight hours or more to run.

    我经常会发现十亿字节数据,晚上我就需要分析这些数据并,找出模型,坦白说,有时,我会花10-15分钟来编写一个脚本,一个小程序,但不幸是,运行它可能需要8个时或更多时间。

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

  • I've got a little program called Silly.

    我创建了一个名为Silly的小程序

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

  • So I tried running a program in this little black and white window called GCC and we'll see it today working properly that is a so called compiler.

    在一个名为GCC黑色窗口里,运行我们程序,然后得出想要结果,这就是所谓编译器。

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

  • And then really the fun begins when you realize all you have ; to do is now start wiring these ideas together; wiring these little bite size problems together and so in the end that actually make, per Tej's project, a really impressive whole.

    当你意识到你现在要做就是,把想法付诸程序,把问题串连到一起时候;,就开始觉得有意思了,实际上每个Tej项目,都是个为令人印象深刻整体。

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

  • I have connected to the course's central server from my own laptop and via dot slash chart am I about to run a little program that depicts as best we can with what with generally call ASCII art -- -- it's really all you can do in a terminal window like this -- our numbers from the past few years.

    我已经通过我电脑连接到了课程中心服务器,在我笔记本电脑上,通过键入“,/chart“,我将要运行一个被描写成,“ASCII码艺术“的小程序-,在一个这样终端窗口中你们都可以做到-,过去几年中我们人数。

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

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

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

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