What I want to do is get you to appreciate the unique perspective that you will get from studying solid-state chemistry.
我要做的是,让你们,欣赏领会到它独特的远景,在学习固体化学的过程中。
So it was a little risky but safe in the end because I didn't do anything else with it.
所以它有点冒险但是最终是安全的,因为我没用它做其它的操作。
So what I'd like to do now is focus on a piece that emphasizes--foregrounds-- just the first axis, pitch.
那么现在我要做的是集中精力于一首乐曲,它所强调的,突出的,只是这第一维,音高
I'm gonna keep as part of each stock, it's history of prices, which we can initialize, well, I've initialized it as empty, but that's probably the wrong thing, right?
我会把股票的历史价格,作为每只股票的一部分,我们可以先对它的历史价格进行赋值,好了,我先给它赋了空值,但是这样做可能不对,是吗?
Alright, next thing I want to do is to define the vector that plays the role of the number 0.
接下来我想做的是定义一个矢量,它相当于数字0
And so, what I want to do is begin by doing a little bit of introduction so you get to know what's going on.
还有,我开始要做,一点的介绍,你们就能知道它是这么回事了。
This was very big in an ad campaign at least last year, I'm not sure if it still is, with the little butterfly.
它的广告宣传做得很大,至少在去年是这样的,我不确定它现在还是不是,它这里有一个小蝴蝶。
And maybe it does it kind of the same way that I do it but my computer doesn't have feelings in the same sense.
也许它做这些事情的方式和我是一样的,但我的电脑却并不能,像我一样,拥有情感
So here's our election, and it's between a, which way do I want to do it?
这是我们的选举,它介于,我想怎么做呢
CAPM It's abbreviated as the CAPM and I'm not going to do it justice here, I'm sorry, but there are so many ins and outs of this.
它的缩写是,我不打算在这做进一步阐释,不好意思,但是这里有很多值得深究的东西。
Well, the straightforward answer is a piece of paper had parts, and in breaking it, in ripping it, what I literally did was I ripped one part from another.
直截了当的答案是,一张纸是有部分的,破坏它,撕裂它,我做的就是把它撕成了,一个个部分。
It was the best thing that I could've done.
它是我可能做过的最好的事。
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.
这是另一个表,我希望你们做笔记时把它加到,世界上这些严重的传染疾病上,因为现在有一些项目致力于开发,针对这些疾病的疫苗或者改进式疫苗
I could have just done this, and the only reason I didn't here is just because now I look - at this, and now it's just getting confusing for me -- even for someone who's been programming for a while.
我本可以这样做,我之所以没有这样做是因为,现在我看着这个,它是我有点迷惑了-,甚至是对于某些已经写了一段时间程序的人来说。
OK. So. Why did I do it? It's a simple example, I agree, but notice what I just did. It allowed me to highlight, is the code doing the right thing?
这是一个简单的例子,我同意,但是请注意我刚才是怎么做的,我通过它想要强调,代码是做了正确的?
And the idea, again, is the kids who don't get rewarded say to themselves, "Well, I just spent time doing it, it must have an intrinsic value," while the children who get rewarded say, "I did it for the sticker. I did it for the toy.
再一次,没有得到奖励的孩子心里想,“我花了时间来做这件事,它一定是有内在的价值的”,而拿到奖励的小孩会说,“我是为了贴纸和玩具才做的”
If you zoom in up top, which I can't quite do with a keynote here, it says, "This last minute shopping, bargain hunting."
如果你想追根究底,我也不能,在这里做一个主题演讲,它说,“这是最后一分钟购物,特价商品大甩卖“
So that would actually be another method I could put in.
好我认为它是在做比较,看看是不是相同的?
But here's a new and improved, I think, version of increment; ++ returns nothing, takes nothing, but it does perform plus plus, but I did something stupid.
但这里是一个新的,改进了的increment版本;,没返回值,没输入值,但它执行的是,但是我做了件愚蠢的事情。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
Because what I want to do is, 01 say if self dot price is less than 0.01, 0 I'm going to set it to 0, just keep it there.
因为我想要做的是,比方说如果self。price小于0。,我就把它的值设为,然后放在那。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
same point It says, if you give me two of these data objects, I'm going to call them p 1 and p 2.
的代码,What,does,it,say,to,do?,你可以看看它,它是用来做什么的呢?,它的意思是,如果你给我两个。
I'm going to give a name to that. And what you see there is I'm going to call divisors initially an empty tuple, something has nothing in it. Right here. And then I'm going to run through the same loop as before, going through this set of things, doing the check.
你们可以看到这里,我初始化一个空的元组,名为divisiors,这里,然后我会去运行,跟以前一样的循环,遍历这个集合内的东西,然后做检查,现在我要做的是,每次我找到了一个除数我要把它收集起来。
应用推荐