So this is one more example of stressing why I only want to come access to the instances through defined methods.
其他相关的值也会变化,我想要这些值会一起变化,这就是另外一个强调为什么。
we're teaching students that in some instances it's okay to hit.
我们就等于告诉学生,有时候动用武力也是可以被原谅的。
In Book One alone there are four primary instances of what we can think of as this primary simile dynamic.
仅第一本里就有四个主要的例证,我们可以看作最初的明喻来源的动力。
Right add to it in a second, but the idea is class is going to be a template for creating instances.
对象的实例的模板,现在,这真是一个很蠢的模板,我马上会去完善它,但是首先我应该先建立起它来。
There are many other instances of this myth-making imagination that Yeats is always working with.
还有很多这样叶芝用想象力,进行神话创作的的例子。
And, in some instances, they can be made to behave more nearly metallic.
而且,在一些情况下,它们能表现出更接近金属的性质。
So, let's take a look at one of these rows in more detail to think about why this might be happening, and it turns out the reason that these glitches occur are because the sub shell structure predominates in certain instances, and that's where these glitches take place.
那么,让我们仔细地看一看其中一行,想一想为什么会这样,结果是这些小偏差的出现,是因为在一定情况下,亚壳层结构会产生重要影响,这正发生在小偏差出现的地方。
There are instances of that sort of thing.
那类事情有很多例子。
So in a town that's the size of new Haven with a population of let's say 100,000 people in just the immediate New Haven area, there might be 20 of these instances of very severe form of polio per year, 20 crippled children would result.
在一个像纽黑文这么大的城市里,大约有十万人口,生活在纽黑文地区的人当中,每年可能就会有二十人,感染到这种急性传染病,可能会导致二十个孩子残疾
just because in some rare instances it's misused.
我们不能仅仅因为这种实验方法在一些情况下被滥用就完全摒弃这种方法。
Others would argue that in some instances,
有些人可能会争论说,在某些情况下,
There are two instances that come to my mind.
我想到了两个例子:
This in combination with the effects of aging and with genetic disposition in some instances, can cause a worldwide pandemic, and this is what we're currently experiencing.
某些场合中,衰退和生化影响,能引发全球性的大流行,这也是我们近来所见所闻。
Now I have the ability to say, I've got a new class, I can create instances of a line segment, and it's elements are themselves instances of points. OK?
这就是我们要讲模块化的地方了,现在我可以说,我创建了一个新类,我可以创建线段的实例了,这些实例的元素?
Right now, I still have the problem that those classes, those instances of classes, are exposed.
就是这些类,这些类的实例,都是暴露的,我这么说什么意思呢?
Having created this thing called Cartesian point, I'm going to create two instances of it.
这里面是控的,好,我们一会就会来完善它,但是类的概念就是。
The instant unlike binary search, where each instance was separate, here the instances overlap.
这个例子不像搜索二进制数,每个例子是独立的,这里的例子是相互重叠的。
In some instances,these notes are superior to the text There is a reason for it.
有些时候,这些笔记是优于课本的,有原因的。
And I would be able to simply bury away the details of how those other instances are created from how I want to use them by simply calling methods on the classes.
也就是一些线段的组合,我还可以把怎么实现那些,实例的细节包装起来,把它和调用实例分开来,我们下次还会接着讲这个。
These are instances of a class, and associated with that class are a set of methods things that I can deal with.
但是Python的基本思想是相同的,这是一些一个类的实例,这个类关联了一个方法集,我可以做的一些操作。
But that table does not affect any bindings for other instances of the variable like x for ANS.
这时这个局部表就消失了,这个局部表将不会影响其它赋值,比方说像ANS对应的x变量。
And it tries to find the shortest way, subject to those constraints, to get from Point A to Point B. And there are many, many other instances of this kind of thing.
然后谷歌地图开始寻找,满足这些条件的从A地到B地最短路径,还有很多这样的例子,明天我们会再复习一遍这些内容。
That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.
然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。
I actually believe in the history of the planet, there are very, very few instances of people getting paid for taking risk; they get paid for eliminating it.
我一直相信在人类的历史上,有非常少的例子来证明人们,因为承担风险而获得了收益;,他们是因为规避了风险而收益。
They are instances of a class, and associated with that class is a set of methods.
它们是同一个类的实例,与这个类相关联的是一个方法集,因此例如,我可以说。
Think of this as, this is a template for creating instances of an object.
那么上面的东西是什么意思呢?,它的形式看起来挺时髦的,好,它的意思是说。
I'm going to build, this case, a Cartesian point, I'm going to build a second Cartesian point, and my segment passes in those class instances.
我要去建立,在这个例子中,建立一个笛卡尔点,然后再建立一个笛卡尔点,然后向我的segment类。
应用推荐