So let's just to see how you run through some of those calculations. Now let me just ask who here took 5.111? And who here took 5.112?
那么让我们看看怎样,推导这些反应,现在让我问一下,这里有谁学过5。111?谁学过5。112?
For me, I like to walk here, I like to run, I do stretches,
对我来说,我喜欢在这儿走路,跑步,拉伸。
OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
We're trying to run a school here that has some professional standards.
我们试图运行一个学校,里面有些专业的标准。
As such, it shouldn't be any surprise to you that what I'm going to do as we run through each of these arguments is to say, "I'm not convinced by it and here's why."
因此,你们大可不必惊异于,我接下来的举动,当我们讨论这些论点时,我会说,我并不赞同这个观点,我的理由是
We're going to take a chromosomal DNA, we're going to digest it with this restriction enzyme, we're going to put it in this tube and run it on a gel, and we're going to see what results down here.
我们取一条染色体DNA,然后用限制酶进行分解,接着再放,在凝胶上进行电泳,之后看看结果如何
All right. So we've got it now let's test it. So we're going to do here we're going to run compare methods.
很抱歉,那些坐在后面的同学,想往前面来的请自便,我们已经做好准备,让我们去试一下,我们接下来将要做的就是。
And in fact, if you look down- and I'm just going to highlight this portion, I'm not going to run it- but if you look down here, that's exactly what that does.
实际上,如果你往下看-,我正要强调这一部分,我不会去运行它-,但是如果你看看这儿的话,这个方法确实就是这么做的。
I guess it's not macho enough, John, to just, you know, you know, go off and do things by hand, you ought to just run them, but it's a valuable tool to get into, so let me do that here.
我认为这不太男人了,John,你知道的,他们仅仅是认为比起用手做来,更应该直接去运行程序,但是这确实是调试代码的非常有价值的工具,让我在这里给大家演示下吧。
All right, we're-- well actually, I should say that better, we first check to see, is x 0 greater than or equal to zero, if it's not, then we come down here and we print something out, otherwise we run through a little loop to get the answer, and then we check it and we spit something out.
然后我们运行一个小循环,好了,我们现在来看看,如果x≥0或者x<,我们看这儿,我们会输出一些内容,或者我们运行一个小循环来获取答案,然后我们检验一下,然后得到结果。
But here I want it to be determined, chosen at run time.
但是在这里我想要让它是一个由运行时间。
is run a FOR loop here. I'm going to let the number of chickens be in this range.
我知道怎么做对吧?写一个小循环,我所需要做的就是运行一个for循环。
I'm going to give a name to that. And what you see there is I'm going to call divisors initially an empty tuple, something has nothing in it. Right here. And then I'm going to run through the same loop as before, going through this set of things, doing the check.
你们可以看到这里,我初始化一个空的元组,名为divisiors,这里,然后我会去运行,跟以前一样的循环,遍历这个集合内的东西,然后做检查,现在我要做的是,每次我找到了一个除数我要把它收集起来。
I should really just put it in a nice test harness, where I run 100, 200, 1,000 trials, but I didn't want to bore you with that here.
我应该把它放到一个测试组件中,我运行100次,200次,1000次,但是我现在不想用这个来烦你们。
应用推荐