If it's there, I return it.
如果在,我会返回它。
They're plainly interrelated in a variety of ways, but it's more to the question of determinism I want to return today.
在很多方面他们都相互联系,但是今天我要多谈点有关决定论的问题。
This is something I'd like you to practice, I'd like you to think about, be conscious of, and it's something we can return to.
这是我想让你们练习,并且希望你们多想想,并且小心注意的,这也是我们能够重现的。
But it's a valuable thing. It says, in each case, I return some useful value from this procedure.
但是这就是变量,是在每个例子中,我从这个程序中返回了一些有用的值。
2% You could say, I think my portfolio has an expected return of 12%-- that would be better than if it had an expected return of 10%.
如果一个投资组合的预期收益率有-,那就比一个只有10%的投资组合要好。
Two ways of measuring how this happened and what difference it made is to realize, to return to what I said earlier, that big state structures involve bureaucracies.
如果要弄懂贵族如何获利,以及贵族获利所引起的改变,我们必须意识到大国必须建立官僚机构,我在前面曾提到过这一点
f Well, call toupper pass this lowercase F F to this function called toupper it's going to return capital F and so what do I assign to s2 bracket zero?
调用toupper函数,传递这个小写,然后返回的是大写的,那么我对s2【0】赋值多少?
It would be, I think, extremely instructive to read it alongside The Return of the Soldier or Mrs. Dalloway for the reasons I've mentioned.
我觉得如果把这本书和《戴洛维夫人》或,《军士返乡》拿来一起看肯定更受启发。
Do one comparison and return one of two possible orders on it, but I need to decide that.
虽然可以做一次比较,然后返回两个可能的顺序中的一个为结果,但是这需要我来做决定。
And then the only other difference is obviously, it's a function I need to return a value.
然后还剩下一点明显的区别,对于方法我要有返回值。
And then I'm going to just return the bigger of the two. Little bit complicated, but it's basically just implementing this decision tree.
我会计算总价值,然后我会返回两者中的较大值,有点小复杂,但是它就是按照这个决策树在运行。
If I come into this code, I'm going to check this branch first, if it's not true, ah, there's a return at the end of that branch. If it is true, I do that, and then I've got a second test. If it's true, return I return, otherwise a return.
但是如果我们看看这里,如果我看这段程序,我会先检查这一部分,如果它是假的,啊,这部分分支结尾有一个。
So the first thing it does, price=0 is it says, if self dot price is 0, I'm just going to return.
所以它做的第一件事就是,如果self。,我就返回。
Much of this should be reserved for next time when I talk about Cleanth Brooks and return to the whole subject of the New Criticism - and the way in which it's viewed historically-- so much of it can be reserved for next time.
这些我们都留到以后再说吧,我得先讲讲克林斯·布鲁克斯这个人,然后还要回到新批评派,在历史上如何被看待这个话题上-,哎,要说的还真多。
there that we want to highlight. In particular, -- notice-- let me highlight it for you, if I can find it with the wrong glasses on-- we've got these return commands.
这里还有一些我们要引起注意的变化,特别是注意这个,让我给你们强调一下-,看看我能不能戴着这副度数不对的眼镜。
memo And then I'll return it.
然后我再返回。
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.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
I don't have to go read what it printed out in the screen. This has returned a value that I can use. Because I could do a test to say, is this a return value? If it's not, I'll do something else with it. So the binding is still there, it simply doesn't print it out.
我不想读到屏幕中打印出来的这行字,程序返回过一个我能够使用的值,因为我可以做个小测试,来说明这是否是返回的值,如果不是,我可以做一些其它的事,而这个绑定依然在这儿,没有打印任何东西。
Right.? I'm going to set up a variable to say, none what's the answer I want to return, is it there or not. Initially it's got that funny value none.
看我要找的答案在不在数组里面,初始化为,然后建立一个索引。
Except, before I return the value, I save it.
除了我再返回之前,还保留了这个值意外。
Knowing that, I'm going to say, OK, how many pigs are there, well that's just how we're, however many I had total, minus that amount, and then I can see, how many legs does that give, and then I can check, that the number of legs that I would get for that solution, is it even equal to the number of legs I started with, ah! Interesting. A return.
它将给我返回头的总数,知道了这些之后我可以说好了,有多少猪呢,无论有多少组鸡的数目,我只要用总数减去那个值,之后我就可以知道一共有多少条腿,然后再把这个值和题目中的腿数相比较,看它是否等于一开始的腿数,啊!真有趣,有一个返回值。
I said both the x- and y- coordinates are bigger, then I'm going to return something to it.
我说过如果x和y坐标,都是更大的。
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坐标。
All right? So if I called sqrt alone, that return test value is done, but in this case I bound it to test, so I can go look at test, and there it is.
执行完返回值语句,但是在这里我将把它赋值给,所以当我看test的值的时候就是返回的值。
b times. So I've got to go 3 b steps. All right I've got to go through the loop b times I've got three steps each time, and then when I pop out of the loop, I've got two more steps. All right I've got the initiation of answer and the return of it.
好,我一共执行了b次循环,每次循环内部进行了三次基本操作,当跳出循环后还有两个基本操作,因此这个初始的答案就是,2+3b次基本操作,来完成这个循环。
With the government expected return, we want to make that expected return as a fourth asset-- rf we could call it r4 but I'll call it rf-- it's a special asset.
根据政府的期望收益率,我们将其作为第四种资产-,可以称之为r4,我们写成-,这是个特殊的资产。
So the question was, why is this return down at this level, it says, well if I ever execute out of this FOR loop, I get to the end of the FOR loop without hitting that branch that took me through the return, then and only then do I want to actually say, gee, I got to this place, there isn't any value to return, none I'm going to return none and none.
问题是,为什么它是在这个级别上返回值呢,意思就是如果我出了这个for循环,就意味着我运行的过程中没有走到任何,带return的支路上去,这时也只有这时我才能说天呐,我终于走到这儿了,这时不会返回任何值,只会返回none和。
应用推荐