It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
This is another fantastic pattern that of course is very useful in a variety of situations.
这是个非常棒的句型,你可以在各种情形下使用它。
Formaldehyde cross-links proteins, so, if you treated this virus with Formaldehyde, even it was able to enter a cell, it couldn't break down anymore.
甲醛使蛋白质发生交联反应,因此,如果你对病毒使用了甲醛,即使它可以侵入细胞,它也不能够再进行分解
What is this? This is a wonderful piece of abstraction. It is saying, you don't need to know squat about what's inside the body of this function. You don't have to worry about the parameter names, because they're going to be preserved, you don't need to worry about how I'm doing it, this tells you how you can use this, in order to use it correctly. Of course, I can then close it off, and off we go.
但是这能告诉你一些信息,这是什么?,这是一段完美的抽象,它的意思是你不需要知道,这个函数的内部构造,你不必担心参数是否重名,因为它们已经被预存了,你不需要担心我如何使用它,它告诉了你你该如何操作,从而正确的使用它,当然我也可以把它关掉。
Well, we can't guarantee with UV light we'll have enough energy to eject every single electron, so that's why when we use x-rays, they're higher energy, you can pretty much be guaranteed we're going to eject all of those electrons there.
好,我们不能保证紫外光有足够的能量,激发出每一个电子,所以我们要使用,X,射线,它的能量更高,你可以非常确定,我们可以激发出其中所有的电子。
Well, you can use what's called an array which is kind of a list or a little satchel of that you might physically carry that you can put things in again and again, and with an array can you actually keep track of not just numbers but any kinds of things, other sprites or other pictures, or perhaps a little something like this.
你可以使用数组,它其实是个列表,或者说是个小包,你可以把东西一个个放到里面,通过数组你可以保存任何种类的变量,图片或者像,这个例子中的一些小变量,而不仅仅是数字。
You should use it all the time.
你在任何时候都可以使用它。
Except,I mean,you could use it, but not use it as authoritative.
我的意思是你可以使用它,但不要把它当作权威。
When you say "I'm sorry" in English, it can mean that you are sorry for something that you've done personally.
当你在英文中使用“I'm sorry”时,它可以表示你对于自己已有的一些行为感到抱歉。
or you can use an "I don't think" question, which, of course, is very similar, only in the negative version of the "I think" question.
当然,你也可以使用“I don't think”的句型,它与“I think”句型十分类似,只不过是以否定句的形式表示。
Now that I've written sqrt, I can just use it anywhere I want in the code. You've got to rely on the fact that I wrote it correctly, but you can basically suppress the details of how it's used.
就是忽略细节,既然我已经编写了sqrt函数,我可以在代码的任何地方使用它,你完全可以依靠,我已经编写的这个函数。
应用推荐