So what we can actually directly compare is the dissociation energy or the bond strength of nitrogen versus hydrogen.
因此实际上我们可以直接进行比较,对氮分子与氢分子的离解能,或键的强度。
STUDENT: Good question. Sounds like a reasonable guess How in the world am I going to compare a string to a number?
学生:不可闻的声音:,很好的问题,听起来像一个很合理的猜测,我到底该怎么对一个字符串,和一个数字进行比较呢?
What do I now need to do in order to sort the whole left half? Compare them all.
为了对左半部分的4个杯子排序,我需要做什么呢?,进行比较。
And this is a place where it's comparing strings and numbers in a strange way.
这里其实是对字符串和数字,以一种相当奇怪的方式进行比较的。
All right, so we've tested it, and we haven't tested it yet we have tested it but, we haven't seen it, well, you know what I'm going to do?
好,我保存下,这有点儿烦,不过能让字体更大点儿,好,我们已经得到了要比较的对象了,但是还没对它们进行比较测试?
It says, well I'm going to print out first and last just so you can see it, and then I say, gee 2 if last minus first is less than 2, that is, if there's no more than two elements left in the list, then I can just check those two elements and return the answer.
然后它计算了尾点和开始点的差,如果小于2的话,也就是说数组中的元素小于等于,我对这两个元素进行比较,然后返回结果就可以了,否则的话,我们就去寻找中值点,注意它是怎么实现的,首先这个指向一个列表的开头。
Alright, now you kinda need to compare them all, right?
需要对所有的进行比较,对吗?
I've got another little thing here that I'm going to use a little later on that just prints out values of things.
给我p2的x值,对它们进行比较,就像我们通常会做的那样。
STUDENT: So, the string A is less than three, is false because they're comparing like ASCII values?
学生:字符串A比数字3小,是false的原因是因为对他们,进行了ASCII值的比较么?
The answer is, I don't know if it's ASCII.
答案是,我不知道是不是对ASCII值进行比较的。
应用推荐