Both of these are mischievous, oppositional magazines but with very different styles and attitudes.
两本都是杰出的处在对立面的杂志,但是它们的类型和看法却截然不同。
Most sports and activities like running and cycling are very one-dimensional movement patterns, so you're,
大部分运动和活动,像跑步和骑车,都是很单一类型的运动,所以你,
And the only thing that's differing is the name of the type and the name of the variable I'm using.
其中唯一的区别是数据类型的名字,和我使用的变量名字。
We've looked so far really at two non-scalar types. And those were tuples written with parentheses, and strings.
关于这两种基本类型我们已经,学的相当多了,包括哪些元组和字符串类型。
So, what this lets us do now is directly compare, for example, the strength of a bond in terms of a hydrogen atom and hydrogen molecule, compared to any kind of molecule that we want to graph on top of it.
因此,这让我们现在可以做到直接进行比较,比如,将一个氢原子,和一个氢分子的键的强度,与任何其它类型的分子进行比较,我们只需要把它的曲线也画在这幅图上。
We'll talk about verse and chorus when we get to the issue of form.
我们会谈到主歌和副歌,等我们遇到那种曲式的类型再说
So this is the same kind of picture we drew last time.
这和上一讲的图像是一个类型的
We'll learn more about that in a moment, but basically it allows the immune system to distinguish between viral and bacterial pathogens, and respond appropriately depending on the type of pathogen that's there.
我们一会儿会学到不少,但基本上说,这样一来免疫系统,就能够分辨出病毒和细菌病原体,并对相应的病原体类型,产生合适的免疫反应
Now there are two types of diabetes, as you may know, there's Type I Diabetes which is a genetic abnormality that usually shows up in childhood or adolescents where people are dependent on insulin.
你们可能知道,糖尿病有两种类型,Ⅰ型糖尿病是由基因异常引起的,在儿童和青少年中较为多见,患这种病需要长期依赖胰岛素
And we're going to start with one that you many of you, have already bumped into perhaps by accident, which are lists.
曾经遇到过的,可能是偶然遇到的类型来开始,就是数组,数组和字符串类型。
Second thing we saw was, we saw that associated with every primitive value was a type.
我们学习到的第二件事情是,和每个基本值对应的,是一个类型。
OK, but nonetheless, I want to stress we have both a value, yeah, and a type.
好,但是尽管如此,我想要强调我们有了一个值,和一种类型。
What does it do? It has height, it says, I've got two names of things: the request message and the error message.
那它是用来干嘛的呢?,它声明了包含两个对象:,要求输入的信息和输入类型错误信息。
Now, this is not the nicest way to do it but it'll work. I can look at the type of the value of base and compare it to the type of an actual float and see, are they the same?
这不是最好的办法但它确实有用,我可以得到底的值的类型然后,和一个真的浮点数的类型比比,看他们是不是一样?
We want to do the same thing, but with our data types.
我们想要创建数据类型和函数,或者我们会叫他们方法。
For now the way to think about this is, cp2 when I call that class definition, it goes off and allocates a specific spot in memory that corresponds to that instance.
这个语句所做的,就是建立了,这个类型的实例cp1和,这个类型的特定版本,现在你们可以这么认为。
They're used by the body for pretty immediate energy where fat is a little bit more long-term energy, and there are many types of sugars-- and these are things that you've heard-- glucose and sucrose being the most common things that you can consume in ordinary foods, and then lactose of course, from milk.
碳水化合物被身体当做是直接能源,而脂肪则更像是一种长期能量,糖的种类有很多,这些类型你们已经听说过,葡萄糖和蔗糖是最常见的形态,你们可以在一般的食物中获取,乳糖,显然来自于乳类
Well basically what we're doing is we're giving ourselves the ability to create data types the same way that we have some built-ins, so we have things like int, float, string, these are built-in data types.
就是要赋值我们自己创建,和内置的数据类型,相同的数据类型的能力,我们有一些内置的数据类型,如int,float,string等,如果你考虑下这些数据类型。
And just as with variables, you should use some common sense, some style here, and the function's name should X Y communicate what it does, calling it X or Y or Z is generally not all that helpful.
就像变量,你使用一些常识,一些类型,和函数名需要,传达它所做的事情,把它叫做,或者Z通常是没有什么用处的。
We're going to build up this taxonomy if you like, but the reason it's relevant is, associated with each one of those types is a set of operators that expect certain types of input in order to do their job.
我们将会建立这种分类,但是这相关的原因是,对于每种类型都有,和之对应的一个操作集,这个操作机对一些输入,做出规定的操作。
There's different types of the root that you can get called the bitter and the sweet.
这些根有不同的类型,被称为苦的和甜的。
Let's pause it there, and as we said last time, it operates in that fashion, and that beginning gives us a good opportunity to make a distinction between two types of melody, between this idea of a motive and a theme.
稍微停一下,就像我们上次所说的那样,它是这样,编排的,乐曲的开始乐段给了我们很好的范例,来区分两种旋律类型,区分动机和主题
So, summarizing better, assert is something you put in to say to the user, make sure you're giving me input of this type, but I'm going to guarantee you the rest of the code works correctly. Exceptions and exception handlers are saying, here are the odd cases that I might see and here's what I'd like to do in those cases in order to try and be able to deal with them.
所以更好的总结下,断言就是你放在那里告诉用户,保证你输入的是这种类型的,但我能保证剩下的代码运行正确,异常和异常处理做的事,这里有些我能预期的异常情况,并且这里有些情况,我能尝试处理。
So, for example, if we look at the 2 s orbital of argon, it's going to have the same amount of nodes and the same type of nodes that the 2 s orbital for hydrogen has.
所以举例来说,如果我们看氩的2s轨道,它有相同数量的节数,和相同类型的节点,对于氢的2s轨道。
All right. I want to return to some non-scalar types. So we've been looking, the last couple of lectures, at floating pointing numbers and integers.
好,我们现在回到一些,非基本类型的话题来,我们在过去的几节课里,一直在研究浮点数类型和integer类型。
Can't use them on Booleans, they have a different set of things. They do things like AND, and OR. And of course there's a bunch of other ones in there, I'm not going to put them all up, but we're building up a little collection, if you like, of those operations.
这个方面的东西,它们不能被应用于布尔类型,布尔类型有其他的一系列操作,比如AND,和OR之类的,当然还有很多其他的,我不会把他们一一列出来,但是我们会学习这些操作的一部分。
The order complexity here, if I actually write it would be-- sorry, order n times m, and if m was equal to n, that would be order n squared, and this is quadratic.
如果m等于n的话,也就是n的平方,这是一个平方复杂度的问题,这是和前面不同类型的,好,我在做什么呢?
应用推荐