I can take a heat pack, like the kind you buy at a pharmacy. Break it up. It gets hot.
买来的热装罐在里面打破,它就变热了。
Yeah, I used to live down by Chinatown. I didn't live in it.
是的,我原来住在唐人街的下面。我没住在它里面。
So, inside of code, or inside of a script, there's no print, unless we make it explicit.
因此,在代码里面,或者在脚本里面,不会有显示结果的功能,除非我们让它这么做。
We've been discussing energy diagrams a lot in this class, it's a very good way to visualize exactly what's going on.
在这个课里面,我们已经讨论过很多次能量图了,它通常是一个很好的把所发生的事情形象化的方法。
Right? I've allocated a variable, it happens to be a pointer; it's still a variable, who know what's in it, right?
对不?我分配了一个变量,它碰巧是一个指针,它还是一个变量,谁知道它里面是什么?
You see that in the top picture. And within those precincts, within that enclosure, there's a large, open courtyard.
你们可以在顶上的图中看到,在界域里面,它的内部,有一片巨大空旷的庭院。
I really have no idea whether it's a fact, and it's not important in My Fair Lady whether it's a fact.
我真的不知道这是不是真的,但是它在窈窕淑女里面真实与否并不重要。
It even has a curtain hiding Zooey from his mother.
它里面的帘子甚至将左伊挡住,不让他妈妈看到。
Why does it contain reverse transcriptase in it?
为什么它里面有反转录酶
just to fully immerse yourself in it as much as you can
尽可能完全把自己沉浸在它里面,
We already moved way forward and completely revolutionizing the understanding of an atom in that there's something in an atom - it's not the smallest thing there is.
我们已经超前走了一步,完全改变我们对原子的看法:,原子里面还有东西,它并不是最小的,但你也知道。
Having created this thing called Cartesian point, I'm going to create two instances of it.
这里面是控的,好,我们一会就会来完善它,但是类的概念就是。
So, for example, in a hydrogen atom, if you take the binding energy, the negative of that is going to be how much energy you have to put in to ionize the hydrogen atom.
例如在氢原子里面,如果你取一个结合能,它的负数就是。
It might not have any electrons in it, but it still exists, so you need to draw these into your molecular orbital diagram.
也许它里面没有电子,但它是存在的,所以你需要在分子轨道图里画出来。
It's nice, though, only in that it will give us an opportunity to fill in the blank.
这是美好的,虽然,只有在那个里面它才会给我们一个机会,来填充那个空白表格。
It doesn't depend on our going to the archive, finding out what the author said in his letters about it, finding out what he told his friends, or what he told the newspapers. It doesn't involve any of that.
而不是我们是否要把它保存起来,在作者的字里行间琢磨里面的意思,或者发现作者对他的朋友是怎么说的,对报纸是怎么说的,这些都没有。
And we've only just begun using it, but it has just a bunch GetInt GetString GetDouble of very useful functions like GetInt, GetString, GetDouble, And so as those names imply, you can just cull these functions with no arguments and you'll get back that data type based on its name.
我们刚开始使用了它,里面有很多的,有用的函数,像,所以,那些名字暗示,你可以挑选这些,没有参数的函数,然后你可以通过它的名字,获取他们的数据类型。
We're going to call binary search, it's going to take the list to search and the element, but it's also going to say, here's the first part of the list, and there's the last part of the list, Well, it checks to see, is it bigger than two?
我们将要调用这个二分查找,它将会在列表里面搜索元素,假定这里是,列表的第一个元素,那里是列表的最后一个元素,代码内部到底做了什么?
So I start this program by declaring as I did before a global variable X. It is global simply because it is not inside any of my functions.
在程序的开始,我声明,一个全局变量X,它是一个全局的,因为它不在任何一个函数里面。
So this line here declares a variable, just storage space called "x" and it's of type "int," which means an integer has to go in it.
这里的这条线声明了一个变量,一个叫做“x“的存储空间,它的类型是“int“,意思是里面存储的是整数型的数据。
It doesn't actually have an electron in it, so we don't have to worry about whether it's very high in energy or not, we don't care that it's high in energy.
你也许会想,为什么我们不杂化这个2py轨道,它里面没有电子,所以我们不用管它的能量。
As I said, I would prefer to do something that uses an accessor that I just wrote.
来完成这个操作,因此p,Cartesian是一种访问器,它可以访问里面的数据。
And actually, what we usually eat are what are called sweet almonds, and there aren't actual cyanide in the sweet almonds we eat, there's precursors to cyanide, which might not make you more comfortable.
实际上,我们经常吃的,被叫做甜杏仁,我们吃的甜杏仁其实不含氰化物,它里面含有的是氰化物的前驱体,这可能并不会让你感到更舒服一点。
Because I could've built that in, it says if you change the value of this thing, by the way you need to change recompute those other values in order to make this hold up.
我想要大家通过定义好的方法,来改变实例的值了,因为我可以把这个功能,内置到方法里面去,它的意思就是如果,你改变一个值。
There's nothing in it. It's empty. It's transparent.
里面什么也没有,它是空的,是透明的。
If I'm iterating from I on the outside, I on the inside, I'm going to start changing the value and I might very well induce an infinite loop but J is okay.
如果我在外面从I开始迭代,或从里面开始迭代,我将开始改变它的值,我可能引起一个无限循环,但是用J是可以的。
It's inside the memory of the machine, which means we have access to it, we can change it, we can use it to build new pieces of code, as well as we can interpret it.
它在机器的存储器里面,就是说我们可以进入它,改变它,可以用它来编写新代码,当然也可以翻译它。
应用推荐