And I responded to at least one email about this issue, someone quite correctly said tuple are immutable, how can I change one?
我在不止一封邮件里回复了这个问题,一些人很明智,知道元组不可变,但是疑问怎么能去改变他们,我的答案是?
So that's what my course is all about and the courses towards that.
我的课程全跟这个有关,全是这个方向的。
And in the process of tidying it up and making it prettier, I'll often by accident find the bug.
让我的程序更漂亮些,在这个清理美化代码的过程中,我常常无意中发现我的错误。
The final sight I like to show you is the Star Festival sight. Every town has a festival of some sort and my hometown has the Star Festival.
最后一个我要展示给大家的片段是七夕,每个小镇都有些节日,我的家乡有这个“七夕节“
But as I look at it, whether in reality or in my mind's eye, I'm looking at it from a perspective.
但我看着这个的时候,当我的脑中浮现画面,我就是从某个视角在看的。
So, I wrote some very simple software to receive an email from my BlackBerry and then send it out to an email list of some people I put on that list, with my friends and my family on it.
所以我编写一些很简单的软件,来接收我的黑莓手机发来的邮件,然后将其转发给一个邮件列表,这个列表上有我的朋友和家人。
A lot of what brings me to this table and this conversation is the combination of what I do now as an ordained minister in the Presbyterian church, and what I did previously as a wilderness instructor.
促使我来这个讲堂,参与大家讨论的原因,应该是由于我的工作,我现在是长老会的受命教长,曾经是野外活动的教练。
I went to see a rich girl I knew. In the morning she pulled a hundred-dollar bill out of her silk stocking and said, "You've been talking of a trip to Frisco. That being the case, take this and go have your fun." So all of my problems were solved.
我去看望我以前认识的一位有钱的姑娘,到了早上,她从丝绸钱袋里取出一张100元的支票说:,“既然你那么向往到圣弗兰西斯科的旅行,拿着这个去寻找你的快乐吧“,这下我的问题全部解决了。
Glancing at the bottom, this is pretty arbitrary, but I chose to format my string as follows: % 1f so at the bottom here I'm printing out %.1f, which quick sanity check means print just one digit after the decimal place.
看下这个底部,这个是相当随意的,但我选择把我的字符串格式化成这样:,所以在这个底部我打印输出,提醒一下,这是一个只打印出,小数点后一位的方法。
This I must say, this topic ignited my imagination when I was a kid when I thought about it; when I was an athlete.
我必须承认,这个话题点燃了我的想象,当我是孩子时想到它;,当我还是一名运动员时。
In this experiment, if you are in my magnet, you might see this first, a product, and then see it's in an associated price, and then be given the opportunity to either buy that product at that price or not.
在这个试验中,如果你是我的试验对象,你会首先看到这个,一种商品,然后会看到相关的价格,然后做出选择,决定是否要购买图像上的商品。
My argument must be wrong because it goes against the lesson of the class and the lessons of the class are gospel right, they're not wrong ever, so what's wrong with that argument? Yes, Ale Well because you have to be able to agree, you have to be able to speak to them but we aren't allowed to show our partners what we wrote.
这个说法肯定有问题,因为这和我们的结论刚好背道而驰,结论是绝对正确的,结论没错,那这个说法错在哪,艾尔,因为你必须要能够达成一致,你需要和他们谈判,但是我们不允许同伴看到我的选择
And in here, there's a very male-dominated theme that you'll see pretty quickly, and what you'll see in this is that this man is being told, and men who watch it, obviously a male-oriented sort of thing that I've seen watching sporting events and the like.
这个广告片,有个明显的男权主题,你们马上就能看到了,你们会看到在这个广告中这个男人在聆听,还有在看的男人,显然这是个以男性为主要目标的广告,我看到了类似运动比赛的元素
And then I say, oh you know I've used lists all over this program. I'll bet this isn't the only place where I've made this mistake.
变化引起的边缘效应,然后我的意思是,你知道的我在这个程序中一直都在用数组,我敢打赌我犯了这种错不止一次。
On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?
如果我的目标数比这个值要小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?
The last thing I want to point out to you is, I started out with this list. I haven't added anything to the list, right? I mean I've got a different kind of looping mechanism.
我们从这个列表开始,我没往这个列表上加任何东西对不对?,我的意思是我学会了一种不同种类的,循环机制,我想我得说。
I have constant time access which is great, but I paid a price, which is I had to use up some space.
我的访问时间现在是常数级别,这个非常的棒,但是我也付出了代价,不得不使用更多的空间,在整数的例子中。
So in fact, it is the case, if you look at data, and by the way, that's the way I ended up setting a lot of these parameters and playing with it, was comparing what my simulation said to historical stock data.
所以实际上,在这个例子中,如果你看到数据,顺便说一下,这就是我设置很多变量,然后编程的方式,也就是把我的仿真程序得到的结果,和历史股票数据进行比较。
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
Good question. And my answer is-- And sometimes I think this one's a tie.
这个问题问得好,而我的答案是,有时我觉得这是个平局
So, I actually paused for a moment to take some photographs after this particular experience because after walking this woman who happened to be, I mean she was at least 70 plus years old I would say, no offense if she's watching this on the Internet now and I got that wrong, but at least 70 years old.
所以,通过这个特殊的经历后,我停下来一会儿,拍了一些照片,因为这种事发生在,这位老太太身上,我的意思是她至少有70多岁了,我想说,如果她在网上看看这个,就不会犯错了,但是我错了,她至少70多岁了。
OK, once it gets to the end of that, what's it going to do? It's going to come down here and, oh. What's that doing? Well I cheated when I started. I said, somebody's giving me a perfect square, I'm looking for the square root of it. But suppose 15 I gave this thing 15, and asked it to run.
好,一旦到了循环的最后,程序会去做什么?程序会跳到这里来,噢,这是干什么的?好吧,当我开始的时候我有点小作弊的意思,我说过,我得到了一个完美的平方数,我要求这个数的平方根,但是假设下我得到的数是。
Okay, I was a little angry when I wrote this.
好的,当我写这个的时候我的语气有点生硬。
So, he can't wait to tell Franny that the professor said he should try to publish it, and then my favorite thing: he wants to read it to her over the football weekend. " Hey, come, let's read my English essay." Hello.
所以,他迫不及待地告诉弗兰尼教授说,他应该出版它,还有我最喜欢的事情:,他要给她读,在这个橄榄球周末“,来吧,让我们一起读我的文章,嗨。
As such, it shouldn't be any surprise to you that what I'm going to do as we run through each of these arguments is to say, "I'm not convinced by it and here's why."
因此,你们大可不必惊异于,我接下来的举动,当我们讨论这些论点时,我会说,我并不赞同这个观点,我的理由是
And I think the example of the Evening Star and the Morning Star-- which is not at all original to me-- that this example shows, this counter example shows, that Descartes' original argument doesn't work either.
而且我认为晨星,和昏星的例子,这不是我原创的,这个例子说明,这个反例说明了,笛卡尔的原来的那个论证也行不通
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 has got my personality, my memories of growing up in Chicago,becoming a philosopher, my thoughts about what I want to have happen to my children, my fears about how I'm going to explain what's going on to my wife.
这个肉体拥有我的人格,我在芝加哥成长,成为哲学家的记忆,拥有我对孩子将来的期许,有我不知该如何跟妻子解释的恐惧。
When the gentleman brought it and install it in my bedroom here, they gave me one simple sheet to tell me how to turn it on, how to get into the program, and then program really explain itself, really invites you to explore the pieces of it, by itself, I mean.
当他们把电脑带来,安装在我的房间里,给了一个简单的小册子,告诉我如何打开电脑,如何运行这个程序,然后程序就自动开始解释了,它让你去探索每个部分,自动的,我是说。
I going to come back in a second to how it actually does that, but it basically says, get me x value for p 1, get me the x value for p 2, compare them, just as you would normally.
是一个类的实例,我要去取的这个实例,所关联的x值,我稍后会讲讲实际上,这里是怎么实现的,但是基本上它的意思就是,给我p1的x值。
应用推荐