So I might as well return the without i value I just computed.
所以我不妨返回除去i外,我刚算过的值。
First of all, having read in that value, I can check to see, is it of the right type?
首先,读一下这个值,我们可以来检查看看是不是正确的类型?
I fully understand the value of what you are driving at, but frankly, the narrative as it now stands simply will not support a more general or hopeful conclusion.
但你的提议太含糊不清,说实话,你说的,无助于更好的结局。
It just throws the decimal point away and that's because, again, these are ints and the answer intuitively should be a floating point value, but I need to be more specific.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
As of then, I calculated the value of their oil in the North Sea and that's what I got-- it's worth about 3.5 billion Norwegian Kroner.
我计算了当时他们拥有的北海石油的价值,这是我的计算结果-,它价值35亿挪威克朗。
And then he said at the end: "Do justice, love mercy and walk humbly with our God. " And the last value I talked about is faith.
最后他说:,坚持正义,学会宽容,谦逊地跟从神“,我要说的最后一种价值观是信仰。
Previously to this most recent discussion, I talked about the value of life.
在这个最近的讨论之前,我谈到了生命的价值。
And i believe in the value of liber arts education, just in general, just learning about the world, learning about other people, would serve me in some ? way, some way which i really didn't know.
我相信,社会学科教育的价值,我认为普遍地了解这个世界,了解他人,将以某种,我当时还不了解的方式帮助我。
I think film mostly through the entertaining value and I know there is more to its essence I've never taking film class, so I hope the films might be interesting for us to discuss some philosophical concepts Never thought about like that.
我主要看到的是电影的娱乐价值,我也知道电影还有很多其他价值,我从没上过电影课,我希望这门课会很有趣,可以讨论一些哲学概念,我从没思考过这类问题。
Think about that. That says, if this thing has some particular value, I want to do one thing; otherwise, I want to do something different.
考虑考虑,这意味着,如果这个事情有一些特殊的值,我就去做一件事情;,否则的话,我就会去做另外一件事情。
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?
现在,我需要做什么?,我要做成员检查,我要做查找,这就很简单了,给了即定的表示和一些值,我只需要说喂在那儿吗?
On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?
如果我的目标数比这个值要小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?
Now, I mentioned this other sentinel value a while back.
现在,我刚才提到了这个标记值。
Variable stores the value 1 I've got it.
变量存储了数值。
Again it's like anyone who does important things it's hard to judge the whole picture and on that I am sure he has created value for the economy.
同理,对于那些做着重要事情的人们,很难估测大局,不过我很肯定的是,他已经为经济创造了价值。
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
self y Notice what I also do here, I create self dot y, give it a value, and then, oh cool, I can also set up what's the radius and angle for this point, by just doing a little bit of work.
我创建了,然后给它赋值,然后,噢太酷了,通过做一点额外的工作,就可以得到点的半径和角度了,好,实际上如果。
If it's there, I'm done, if not, I keep walking down, and I only stop when I get to a place where the element I'm looking for is smaller than the value in the list., in which case I know the rest of this is too big and I can stop.
并且保持遍历,我只在当当前位置的数组元素,大于目标数时停止,这意味着剩下的元素都比目标元素大,但是其他的情况,我还是要遍历完整个数组。
Then if the weight of i is less than the available weight, I can return the value of i.
然后如果i的重量,小于剩下的重量,我将返回i的价值。
I'm going to try and predict what the value is going to be. And then see if, indeed, I get what I predicted.
我会去预测结果值应该是怎么样的,并去看看它是不是,跟我预期的相同。
Need to get the base in. Second thing I want to do, I need to get the height, so I'm going to input a value for the height, also as a float, a floating point.
也就是输入底的值,第二件我想要做的,事情就是得到三角形的高,因此我会输入一个值作为三角形的高,同样也是一个浮点数。
If it's the value I'm looking for, boy, I ought to go to Vegas, I'm really lucky.
我可能要去赌城赌一把了,我太幸运了,然后算法就结束了对不对?
Which is actually of real value to me here as I use that. OK. Yeah. Question.
这正是对我是用这个函数最有价值的地方,有什么问题吗。
应用推荐