It is going to give me back a tuple a collection of two things, and so check out the syntax.
它将给我返回一个数组或者系列的一对值,然后检查一下语法。
First of all, having read in that value, I can check to see, is it of the right type?
首先,读一下这个值,我们可以来检查看看是不是正确的类型?
I check the return value of GetInt is greater than zero.
我检查了GetInt的返回值比0大。
chickens OK, and then once I've got that, well, notice: I can then check to see, did I return that special symbol none?
第二部分是:,现在一旦我获得了这两个值,注意,我将再检查一下?
It's going to do a lot of type checking for you before it actually passes things back.
它会在将输入值进行计算之前,做很多类型检查。
The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
That's just the those-- let me use my pointer that's just these two lines here. I checked the value, and in one case, I'm changing the last to be mid minus 1, which is the case I'm in here and I just call again. All right?
来看看ppt,这里有两条线,我检查了值,在一种情况下,我把last指向了中点减一,就是这种情况,我们再来调用一下怎么样?
应用推荐