You should acquire overtime this instinctive aversion to just code or programs that just look ugly because things that look ugly generally are not easy to maintain.
对于代码和程序你会有一种本能的讨厌,这是因为这些代码和程序看起来很丑陋,并且不容易维护。
And there's a few things going on here, so clearly there is multiple sprite, multiple characters, and recall from last week that each sprite has its own set of strips or programs.
我们可以看到许多东西,譬如,很明显我们可以看到有许多小精灵,许多字符,想想上周,每个精灵还自有一套,程序。
Not just in sort of mathematical things like chess or math, there are, as you know, programs that can write music.
不止是下棋或数学这类跟数理有关的事,你知道,有些程序甚至能创作音乐
Well as we'll see later in the term, we're going to use a lot of randomness in a lot of our programs. Where we essentially do the equivalent of flipping coins or rolling dice.
我们会在晚些时候学到,我们会在很多程序中,用到一系列的随机检验,这跟掷骰子或者扔硬币差不多。
There weren't even film programs or departments of films.
学校甚至连有关电影的课程,或学院都没有设立。
And this just is another list, I mainly wanted you to have it in your notes of diseases that are important around the world, for which there are very active programs to develop either vaccines or more effective vaccines.
这是另一个表,我希望你们做笔记时把它加到,世界上这些严重的传染疾病上,因为现在有一些项目致力于开发,针对这些疾病的疫苗或者改进式疫苗
We defined an accredited investor as someone who can participate in a DPP or other sophisticated programs.
我们把可信投资者定义为,有资格加入DPP或者其他复杂项目的人
So in general, when you're running command line programs, they can take input or arguments or parameters or switches or flags.
一般而言,当你运行命令行程序时,可以把把这些当做输入,像什么参数啊,或开关啊,或标志啊等等。
And two, to give you a better sense of design especially as your programs get a little more involved and they play or they run for more than just a few seconds time.
另一方面,使你们对设计更有感觉,尤其是你的程序要适用于更多的应用环境或,要运行不止几秒钟时间的时候。
So let's go ahead and introduce a couple other capabilities so that we can finally start writing programs that maybe print out charts or interact with the user, play games, or the like.
让我们继续来介绍其他几个功能,以便我们最终能开始写程序,那样可以打印图表或与用户交互,打游戏之类的。
OK. So last time around, we talked about, or introduced if you like, iterative programs.
好,上节课的最后时候,我们讲过了,或者是介绍过了。
But for the next week or two when you're writing programs, at least for the first time, generally if you're trying Scratch to debug them like you might have been trying to troubleshoot Scratch, you're probably going to reason - through it by looking through the your code -- -- top to bottom, maybe engage a staff member for help -- but your friend will also be printf.
但是,在接下来的一两周内,当你们写程序的时候,或至少在第一次写的时候,通常如果你在调试程序,就像你们可能已经试着调试过,你们或许是通过查看你们的代码,来推断你们的程序-,从头到尾,可能还需要别人的帮忙-,但是你的朋友也将要打印输出。
When the programmers play these programs or indeed when anybody, a good chess player, plays these programs, the best way to try to beat them is simply ask yourself, "What's the best move to make right now?"
当程序员或其他任何人,玩这个程序时,比如,一个优秀的棋手,在玩这些程序时,战胜它们的最好办法就是,问问自己,现在怎么走才最为明智
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.
我想要一个函数,那是一个小工具,在我程序中可以包含的一行代码,通常这些工具在手册的第二节,或第三节。
So all of these programs or commands that we've been using thus far for the piece set in class, take what we call command line arguments, they are the zero or more words that follow the program's name.
所有我们一直在课堂上使用的,这些程序或者命令,携带着命令行参数,它们是跟在,程序名的后面的一个或多个单词。
So let's go a little science fictiony and think about some of the robots that have been shown in science fiction movies, some of the computer programs that have been shown in science fiction movies, science fiction novels, or what have you.
我们来谈一点科幻作品,想一想,在科幻电影中,出现过的一些机器人,在科幻电影,以及科幻小说等其他科幻作品中,出现过的一些计算机程序
应用推荐