The mouse moves the pointer,or cursor, on the computer screen.
VOA: special.2010.08.01
Number one, the basic structure is that you have a pointer and it points over to a pointee, but the pointer and pointee are separate and the common error is to set up a pointer but to forget to give it a pointee.
第一,基本结构是,你有一个,指向数据的指针,但是那个指针和数据,是分开的,通常错误是声明了一个指针,但是没有指向一个数据。
Number two, pointer dereferencing starts at the pointer and follows its arrow over to access its pointee.
第二,指针非关联化从指针开始,通过它的箭头,来使用它的指针数据。
Professor Wobbrock says it uses a large circular cursor instead of the traditional arrow pointer.
VOA: special.2011.04.18
And then it needs to have access to that, so it calls it, passing in self as the pointer to the instance.
把self作为指向这个实例的,指针传了进去,也就是,它的意思是现在。
Ellington made five of his first six shots, including a three-pointer before ending the night with 20 points.
VOA: standard.2009.04.05
And then since we have my red laser pointer, we will also try with the red laser pointer, which is centered at wavelength of 700 nanometers.
然后因为我们有我的红色激光笔,我们也可以用它试一下,它的波长集中在700纳米处。
In the late semifinal, North Carolina took an 8-6 lead on a three-pointer from Wayne Ellington three minutes into the game and never looked back.
VOA: standard.2009.04.05
x >> Okay. I'll dereference the pointer x 42 to store the number 42 into its pointee.
>,好的,我废除这个指针,在指针数据中存储数字。
y >> Yeah. We allocated the pointer y but we never set it to point to a pointee.
>,是的,我们分配了指针y,但是,没有指向任何数据。
Number three, pointer assignment, takes one pointer and changes it to point to the same pointee as another pointer so after the assignment the two pointers will point to the same pointee.
第三条,指针赋值,使一个指针,指向另外一个指针所指向的数据,赋值过后,两个指针会指向,同样的数据。
That statement says, get the value of x, which is this link, and give z a pointer to the same place.
这个声明的意思是,取得x的值,也就是连接指向的值,然后给z赋予一个指向同样位置的指针。
Scratch This Boolean expression allows you to say to scratch if you are touching the mouse pointer, the little arrow, do something. How do we do something?
布尔表达式允许你告诉,当你触碰到鼠标指针,也就是小箭头,程序就相应地做一些事情?
Right now it's empty, actually it's not quite empty, it has a pointer back to the class.
当我调用了这个类的,定义声明的时候,它在内存中的特定点。
But luckily we had the control of the red laser pointer where nothing moved at all.
但是很幸运我们可以,控制红色激光笔,虽然什么都没有移动。
So we see that we do not eject electrons in the case of the laser pointer, even if we have this intensity, it is still not related to the energy of an individual photon, so we won't see an effect.
所以我们看到我们用激光笔,还是没有逐出电子,即使我们有这样的强度,它仍然与一个单个的光子能量无关,所以我们不会看到光电效应。
Now, I have to do the merging so I do pointer, pointer.
下面进行合并,同样用指针。
init Init creates a pointer to the instance.
然后这个方法调用了。
We have a pointer to the location in memory that contains the actual value, which itself might be a bunch of pointers, and we have a pointer to the actual-- sorry, a pointer the value and we have a pointer to the next element in the list. All right?
包含实际值的地址,可能实际值,也是一系列指针,这里还有指向实际,抱歉,指向下一个元素的指针,我们来整理下?
Well, it turns out on most computers an address of the location and memory, aka a pointer, is itself 32 bits.
好的,它是一个计算机内存地址,或者说一个指针,占32位。
Instead if we want this pointer to represent the address of something in as much as it points at that address let's just draw an arrow.
如果我们想要让这个指针表示,数据的地址,它指向的地址,我用一个箭头表示。
Advance this pointer-- this finger, to the next element of the list which is 4, make the comparison.
前移这个指示器--也就是这根手指,让它指向列表中的,下一个元素4,再做比较。
Also, what's the energy per photon of this red laser pointer, and then it's also worth trying a calculation dealing with intensity. So let's also try calculating the numbers of photons that would be emitted by this laser pointer, if, for example, we were to use it for 60 seconds and this were a one milliwatt laser.
同样,红色激光笔的,每个光子能量是多少,这也值得用处理强度的方法计算一下,让我们也计算一下,有多少光子会从这个激光笔射出,举个例子,如果我们使用它持续60秒,这里会有一毫瓦的激光。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
y Hey, try using it to store the number 13 13 through the other pointer Y.
嘿,通过另外一个指针3,试着让它存储数字。
It just changes one pointer to point to the same thing as another.
这只是是一个指针指向,另一个指针指向的数据。
> Just remember the three pointer rules.
>,只要记住那三个指针规则。
Well, basically because it was a design choice when the creators of Python decided to create the language, they basically said, we're always going to have an explicit pointer to the instance.
好,基本上来说这是因为,这是当Python的创造者,决定创造这门语言的时候,的一个设计决定,他们主要的说了说,我们要有一个明确的,指向实例的指针。
We'll make this available because, frankly, you could Google it and now it's pretty moot because Apple has plugged this particular hole but there's all sorts of other bugs still, but it all boils down to one of the topics today, which is going to be that of this thing called a pointer.
我们将这个变得可用的,因为,坦白讲,你可以Google它,现在它是毫无意义的,因为苹果填补了这个漏洞,但是这里还有各种各样的其它的bug,这也是今天,的一个主题,那就是,被叫做指针的东西。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
应用推荐