Add to the list his skill on the banjo.
VOA: special.2009.07.17
The question we're asking is, "Is there a good reason to add to our list of things there are?
我们的问题是,有没有一个很好的理由,让我们往已写有东西的清单上再添上几笔
you know, you get in touch with someone in that club, and they are going to add you in the mailing list.
你可以和俱乐部中的人取得联系,然后他们就把你加入联系人名单。
It's going to take this list and add to it something else.
这个代码有什么作用呢?,我将会把一些东西加到这个数组里面去。
Let me also add that I have a reading list that has clickable things on it and also things that are on reserve in the library.
还有一点,我还有个阅读材料列表,其中有可点击的网络连接,也有可以在图书馆读到的内容
Well, that program was interesting because it had an inventory which was implemented in Scratch with a list which is kind of like a container that you can add things to again and again.
那个程序很有趣,它有一个用Scratch做出来的清单,还有一个貌似容器的列表,你可以不断往里面加东西。
We add up the goods, subtract the bads-- whatever our favorite list is-- and we come to our best educated guess about the rival evaluations of not just lives as a whole, but chunks of lives.
我们把好事加起来减去坏事-,不管我们最喜欢哪些事-,我们不但可以据理推测,一生期间其他生活的价值,还能推测某段时间其他生活的价值。
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.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
It took me seven comparisons, because I can take advantage of the fact I know I only ever have to look at the first element of each sub-list. Those are the only things I need to compare, and when I run out of one list, I just add the rest of the list in.
进行了7次对比,因为我可以利用我知道的优势:,每次只需要比较每个子列表的第一个元素,那才是我需要进行对比的内容,当一个列表的元素处理完了,只需要将另一个列表剩下的元素直接添加进去。
应用推荐