Well if I-- you know, with let me say it differently. I don't need to worry about how checking is done, it's handled inside of that function.
好,如果你们知道,抱歉,让我们换种说法,我不必担心检查工作,是则会么做的,这是在方法体内部进行的。
It's going to do a lot of type checking for you before it actually passes things back.
它会在将输入值进行计算之前,做很多类型检查。
But that merging process only takes N steps, N*log N so that's N times log of N. Now, it's a little tricky to reason through this perhaps the first time, let's just take a very simple example and see if we can do a little sanity check here.
但这个合并过程只需要N步,所以时间复杂度是,第一次对此进行推论可能会有点儿棘手,我们举一个简单的例子,看看我们能否做一些完整性的检查。
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意识到,应该停止了。
So the way to think about this in terms of flow is, it starts with that if and it says, check both of those things.
因此用控制流的方式,来考虑这件事就是,程序由if开始,然后要对两件事情,都进行检查。
And so if incidentally, you're a representative of a student group and the alike and your Google calendar is not -- in here, you can check just by flipping through the various-- we have over 200 calendars right now and you can search through them here.
如果你是一个学生团体的代表,你的Google日历在此不存在,你可以检查其他各种各样的-,目前我们有200多种日历,你可以在它们之中进行查找。
I test an end test. So the flow chart says, and the tradition was to do this in a diamond shape, I'm going to check if ANS times ANS-- oh, which way did I want to do this x - is less than or equal to x. Now that's a test.
首先进行终结测试,因此流程图就的去,传统的做法是把这个放到一个菱形里面,检查下是否ANS乘以ANS-哦,我刚才是怎么说的来着-是不是小于等于。
应用推荐