And that gives me a lot of power in terms of what I want to have inside of the language.
这让我能更容易的了解,该语言的内部结构。
I guess it makes me feel a little warm, fuzzy on the inside
我想,它让我心中隐约感到些许温暖,
And then in the parentheses we'll see in a moment, it tells me what folder I am inside of.
圆括号里的东西,告诉我们,我们现在正处于哪个目录下。
There may be some inefficiencies, and at some point, if you catch me in the hallway, I can give you a sermon on what goes on inside that reactor.
可能会有某些损耗,如果你能在过道上遇到我的话,我会给你详细讲讲,里面到底发生了什么。
So let's look at a little example, and this is going to, excuse me, both allow us introduce the syntax as well as what we want to have as the flow of control inside of here.
让我们看个小例子,这个程序会,对不对,请允许我,一边顺着控制流进行,一边讲解语法。
There's an interplay between the energy inside the gas which is the heat energy which is allowing me to do all that work to be outside, and so I'm using up some of the energy that's inside the gas to do the work on the outside.
即使没有热传递,能量也能以,做功的形式传递出去,气体的一部分内能,转化成了功。
OK. And I'm going to look to see, is a particular element inside of that list, and again, I'll remind you, that's just giving me the integers from zero up to 9999 something or other.
一个又大又长的列表吧,好的,我打算查找列表中的一个特定元素,我会告诉你,我用的是0到大概是,9999左右的整数。
That's 1800 times faster. But the real one that blows me away is, it has 2 gig of memory inside of it. That's 12 thousand times more memory. Oh, and by the way?
比以前快了1800倍,但是真让我感到吃惊的是,它有2G的内存,这是以前的12000倍,顺便说一句我的?
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
So let me challenge you with this: inside of these curly braces where I have put a comment with slash slash -- a "comment" means nothing here gets compiled, it's just for the human to read.
让我用这个来挑战你们:,在这些花括号里面,我通过双斜杠写入了一个注释,-一条“注释“在这里不会被编译,它只是用来我们阅读的。
I can be a little more careful about keeping track of what goes on inside of that loop. If I don't have any more work to do, let me just stop.
我能更小心点来跟,踪循环里发生了什么,如果没什么可干的了,就停下来吧。
Let's take a look inside that tube. Let me redraw it.
我们来看看管子的内部,再重新画张图。
应用推荐