This is the first instance in which Richard will do what he later describes Mencken doing, using words as weapons.
如同门肯后来所做的,语言第一次被理查当作武器。
And like for instance, this Sunday, I'm doing an event in a garden.
比如,这周日,我要在一个花园里举办一个活动。
self First argument by convention is always self, because it has to point to the instance, and then I pass, in this case, another couple of arguments in.
第一个参数往往是,因为它必须指向实例,然后我传入了,在这个例子中。
What he means, for instance, in this case is well, talking to yourself is self-reinforcing or giving bad news to an enemy is reinforcing because it makes your enemy feel bad.
比如在这个例子中,他的意思其实是,自言自语是种自我强化行为,而向敌人散布坏消息也是一种强化,因为这样做可以使敌人感到不快。
This helps us to explain, for instance, why in so many cultures the concept of saving face is so important, even if to most modern Americans it seems relatively trivial.
这就很容易解释,为什么很多文化里的面子问题,会变得那么重要,而对许多美国人来说,那都是小事一桩。
In Babylonia, for instance, and this I think was typical, Hammurabi was not a god, but as we know, thank God, by the great steely that he left, which is now in the Louvre.
而在巴比伦尼亚,汉莫拉比并不是神,但是如我们所知,他留下了现藏于卢浮宫的铁证,这真得感谢上帝
This might look a little cryptic at first, but it turns there is some very obvious patterns here, for instance. According to this chart, if you want to represent the letter A A in the so called ASCII system, what number do you actually use to do so?
起初,它看起来有点神秘,但你会发现它有一些明显的对应模式,这里就有例子,根据图表,在所谓的ASCII系统中,你想表示字母,你该用哪些数字呢?
And that's the following. Let's take a particle that is moving in the x-y plane, so that at one instance-- sorry, let me change this graph-- is here--oh, this is bad.
接下来,我们来看一个物体,在 x-y 平面内运动,在这个例子中,对不起,我要重画一下这个图,在这里,这画得不好
If I want to get values back out, p I could in fact simply send to that instance a message, in this case I could say p dot x.
我就是,我刚刚在这里输入的,我得到了一个c,point的实例,如果我想把值取出来,实际上我可以。
So we've seen a lot of this, for instance, in office hours and maybe you too have done or are currently doing this, but there's a problem with writing a statement, like print F, followed by, get int, alone.
我们看过很多这个,例如,在办公时间,可能你们做完了或还在做这个,但是写语句的时候有个问题,就像printf,紧跟着的是GetInt,单独的。
And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.
当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。
应用推荐