And we're having a difference of opinion as to whether we should use a tuple or a list here, right?
可以“是结果,明白了吗?我们队在这里是应该用数组,还是链表还有一些不同意见对吧?
There are at least two varieties of imagination in the reader's case, so let us see which of the two is the right one to use in reading a book.
读者至少有两种不同的想象方式,所以让我们来看看,哪一种,适合读书。
So, for example, you might be familiar with Wellbutrin here, this is a type of anti-depressant that a lot of people use right now that are taking anti-depressants.
比如,你可能对这里的安非他酮很熟悉,这是一种抗抑郁症的药,很多治疗抑郁症的人都在用它。
Notice what it has, it has a bunch of nice things that we want to use, right?
注意它包含了什么,包含了一连串儿,我们想利用的好东西,对么?
Maybe you don't need the whole virus, but you could just use a piece of the virus,right?
也许你并不需要完整的病毒,你只需使用病毒的一部分
I'm gonna use my left finger and my right finger and each of which is gonna point at the start of each of this list.
用我的左手手指和右手手指,每个手指指向每个列表的开始处。
So use work out of right-hand side to run left-hand backward.
利用右边输出的功,来驱动左边的热机反方向运行。
All right. In addition to the use of the relationship between plot and story, we also find Brooks using terms that are now, having read Jakobson and de Man, very familiar to us: the terms "metaphor" and "metonymy."
好的,除了运用主题和故事之间的关系,布鲁克斯还会用到很多别的词,等我们读完雅各布森和德曼的作品后会觉得很熟悉:,比如,“比喻“,和,“转喻“
It also requires getting the outsides right-- whatever that comes to-- having in your life not just experiences but the right kinds of goods or accomplishments or whatever term we use for it.
它还要获得外部实现-,不管是哪方面-,你的生活不仅要有美好的经历,还有要合适的物品,或者合适的成就诸如此类。
What have we done? We've now got a way of collecting things together, right? And this is the first version of something we'd like to use.
用的一些东西的,第一个版本,现在我已经把它和,一个名字进行了绑定。
Right, so how do you use the idea of functions to organize code?
好,你们是怎么利用方法,来组织代码的呢?
So one of the questions is, well, what are the right primitives to use?
因此问题之一是,好吧,要使用的正确基本类型是什么呢?
Well, if you knew a cell that could serve as a host for a virus, you could use this process of cell culture to make large quantities of virus,right?
如果你知道细胞可以变成病毒的宿主,可以用培养细胞的过程,制造大量病毒,对吧
And I would suggest palindrome as a great example of that. That's easy to think about recursively. It's much harder to think about iteratively. And you want to get into the habit of deciding which is the right one for you to use. And with that, we'll see you next time.
其它的问题可能用递归的方式,可以更好的解决,而直接思考可能很困难,这时你就得养成做出,正确选择的好习惯了,下周再见。
The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
I've certainly written code that has this problem, I've tried to use my own code that has this problem, and good to us, right, good hygiene, I'm going to use that word again here, of getting into the habit of writing defensive code up front, it's part of that collection of things that you ought to do is a great thing to do.
我举手了吧?,我当然写过犯这种错误的程序了,我也尝试过应用含有这种错误的代码,不错,好的卫生,我还是要用这个词,对我们有帮助,养成写防卫性,代码的好习惯,是你应该做的,一系列事情之一,也是我们日后要做的主要的事情。
But thankfully I also found in my trolling around this morning,something that is perhaps technically motivating and at least remains for those of you which is many of you who actually use Gmail, you might have seen a little advert in the top right hand corner recently saying new beta version of a little something called Gmail Priority Inbox.
幸运的是我今天早上在网上闲逛的时候,发现了一些东西,一些对还在使用Gmail的人来说,可能在技术上有吸引力的东西,你可能已经看到,其右上方有个广告说的是,新版本Gmail优先收件箱发布了。
Inside of solve, solve creates an environment where inside of that, it has bindings for the parameters it's going to use. All right?
在solve内部,solve创建了一个环境,在这个环境中它给她要使用的形参赋了值,明白吗?就像很多--等等?
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐