It gets popped off the stack as one says and so you know what the values actually as we've hinted at with our brief discussions of forensics they're actually still there.
它从堆中释放了,那些值是什么,就像我们讨论的辩论练习,所暗示的,我们还在那里。
Now, what did I want to do? I wanted to check membership. I want to do search. Well that's simple. Given that representation and some value, I just say gee is it there?
现在,我需要做什么?,我要做成员检查,我要做查找,这就很简单了,给了即定的表示和一些值,我只需要说喂在那儿吗?
So you're implementing this black box, and if its purpose in life is to actually return a value, you have to tell the compiler what kind of value to expect, and this is going to have ripple effects.
你在实现这个黑盒子,如果它的目的是,返回一个值,你必须告诉编译器你期望的是什么类型的值,这个将是一个连锁反应。
No matter where you specify your electron is in terms of those two angles, it doesn't matter the angular part of your wave function is going to be the same.
不论你将,这两个角度,取成什么值,波函数的角向部分,都是,相同的。
What is the mole? Mole is a more practical value, something that we can handle tangibly.
什么是摩尔,它有实际值,我们可以很明白的掌握的。
What's the name of that quantity?
这个值的术语叫什么呢
If that's all it knows, then in that scenario there is no building or anything else; it continues a trajectory both forward in time and backward in time, and it says that whatever seconds, one second before you set your clock to 0, it would've been on the ground.
如果是这样,在那种模式下,没有楼房或者别的什么,物体的运动轨迹可以沿时间可以向后延伸,也可以向前延伸,不管时间取什么值,在零点前一秒时,物体就在地面上
Let's let p be Cartesian point, and we'll give it a couple of values. OK?
然后我们给它赋值,好不好?,发生了什么?
I'm going to go over here, and let me define a couple of these things.
仅仅是用来显示值的,好,让我们看看如果,我运行这个程序会有什么结果。
Otherwise, what was the point of getting a string from the user if I'm not handed the result to actually do something interesting with.
否则的话,它不把值带给我们,我们就做不了想做的事情,那我们还要它有什么用呢?
And when we're looking at the probability density graphs, it doesn't make a difference, it's okay, It has no meaning for our actual plot there, because we're squaring it, so it doesn't matter whether it's negative or positive, all that matters is the magnitude.
它的概率密度图的时候,两者没什么区别,这是可以的,它对我们画这个图,没有什么意义,因为我们是取平方,所以它的正负,无所谓,只和幅值有关,但当我们说到。
What do you think should happen if I evaluate that expression?
你认为我对表达式求值的话,会发生什么?
They might very well be storing the addresses of memory elsewhere, but we just needed them as sort of a cheat sheet, a little address card to know where the original values x and y were.
它们存储在内存的其他地方是可以的,但是我们需要一个备忘单,一个地址卡,来知道,原始的值x和y是什么。
Why is that better than typing them?
这比起直接输入这些值来由什么好处呢?
In temp. So that means at the end of that first line of code just as before the value of 1 ends A up in a variable called temp because we said go to A and I look around, oh, there's A, what's there?
在temp中,在第一行代码的末尾,值1最终到了叫做temp的变量中,因为我们指明了定位到,并且四处查看,哦,这里是A,里面是什么?
I don't know what the names of the variables are, I don't care, I can basically suppress away that detail.
在solve函数中使用了些什么值,我不知道里面的变量的名称,我可以简单的跳过这些细节。
All right, first question. What values of x does it terminate? Again, assume x is an integer.
好,第一个问题,对于x的什么值程序,会最终终止,还是假设x为整数。
So, in particular, what we're going to do to find out what quantity q1 maximizes this profits for each choice of q2.
所以我们要算出来在不同的q2下,q1取什么值才能最大化利润
And I think in the polar one I said, if, what did I do there, I said, yeah, again if the x and y are greater than the other one, I'm going to return them to it.
然后我要返回一些值,我认为在极坐标的形式下我说过,如果,我在这里做了什么来着,我说过,对,再说一次,如果x和y坐标。
Z So it would be incorrect to try to assign this to a variable X or Y or Z, because it doesn't actually give me anything back.
这个是错误的,来赋值这个给变量X或Y或,因为它的确没有返回什么给我。
X I'm passing an X, and yet I'm also assigning the return value to X. So just intuitively what's going to be the effect of this one line of code?
我传一个X,之后我把返回值赋值给,很明显,这一行代码,将会产生什么作用?
So long as I say I'm gonna put a string here, it doesn't matter what string it is, GetString is gonna take care of the job of getting it from the user.
把变量放在这,我们先不要管这个string是什么,GetString会负责,从用户那里获取该值。
So this function increment takes nothing, returns nothing, and yet it does something.
所以increment函数不带入参,也不返回值,它也没做什么。
So the square root of n squared r e over r h.
这里的n值是什么呢?
Because Fib of is? What?
因为fib的值是?什么?
So, operands. Let us take expressions, get values out, we can store them away in places, but ultimately we want to do something with them, so we need to now start talking about what are the things we can do inside of Python, or any programming language, to manipulate them.
也就是运算对象,让我们看看这些表达式,然后看看里面的这些值,我们可以把他们存在计算机的任何位置中,最终目的还是要对这些值做一些操作,因此我们现在需要开始讨论,在Python里面可以做什么,来操作它们了,或者在任何编程语言里。
I mean, with the b and c? What value should I pick?
我指的是b和c,这两个系数应该取什么值
You notice what it did, it printed out that little, right up here I'd said enter a number and that's what it's printed out, so I can enter a number and it prints it out.
注意这个程序做了些什么,显示出了指定值,然后显示需要输入个数字,然后程序会显示这个数字,我输入一个数字然后程序显示了它。
p2 It's taking the name p 1 and it's changing its value to point to exactly what p 2 points to.
我要把p1赋值为1,这个操作有什么用呢?,这个操作把p1这个名字的,指针的值改变让它。
So what does the value have?
我们得到了什么值呢?
应用推荐