Well basically, all I'd have to do is go through and find every place I checked the constraint, and change it. To incorporate the new constraint.
比较简单,在最上方,基本上,我做的所有事情就是遍历,整段代码然后找到我对比。
I checked the forecast on the internet.
我查了网上的预报。
It didn't really crash, it found an assert statement. So if you look at the bottom of the function, you'll see that, in fact, I checked for that.
其实程序并没崩溃,它只是碰到一个断言语句然后停了下来,如果你看看函数的顶部,你会看到,实际上我断定计数器。
Notice in this program I have not checked whether or not the user actually provided input.
就拿这个程序说事吧,我们根本没有检查,用户到底有没有输入。
Also, formal charges can be checked, as I just said.
另外,我们可以检验一下形式电荷是否正确,就像我刚才说的。
So I gave you some numbers I made up actually a long time ago, but since I've been using this game in class, somebody went out and checked.
我列举的数字都是我很久前编出来的,在我需要在课上引用数字的时候就有了,有人还为此做了调查
They threw me up against the wall and checked me out, because I was a kid and I wanted to go there and see, just for the purpose of history, of being there.
他们把我推到墙上开始检查,因为我是个孩子而且我想去那看看,就是为了见证历史,亲身体验
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指向了中点减一,就是这种情况,我们再来调用一下怎么样?
Given that that's true and I already checked the two end points, that's true, that's true.
假设它是真的而我已经判断过,两端的元素是否相同了。
I have not checked the length of the variable called nan.
没有检查变量的长度。
It caught the error, because it checked the types of the operands before it applied things and it says, I'm going to stop.
它捕捉到了错误,因为它在,进行运算之前检查了运算对象的类型,然后Python意识到,应该停止了。
应用推荐