All right? The first one is, that test has to involve-- shouldn't have to, the value of some variable.
好不好?第一件事是,循环开始的测试必须必须-不是一定,一些变量的值。
So it's certainly at least linear in the length of the list. For each starting point, what do I do?
它至少是线性的计算列表的长度,每次到了循环开始的点?
So in a sense, that's a good infinite loop that is as long as you're using the program, it's constantly checking your grammar and spelling, and underlining things, so infinite loops aren't necessarily bad if the objective is actually being met.
因此从这个意义上说,这是个好的无穷循环,只要你开始使用这个软件,它不停的检查你的语法,拼写或者下划线等,通过这种方式达到目标的时候,这样的无穷循环并不总是坏的。
So this is the picture, and this is a cycle that undertakes it.
这是图像,是由这个循环开始的。
When they do that, this insulin then starts to circulate throughout the blood.
当胰岛素开始分泌后,胰岛素就开始通过血液来循环
They start on Thursday and go through a Monday cycle.
从周四开始到下周一是一个循环
You start off and you go down, down, down, and then you come up, then you get your first REM cycle, again, again, again, again, again, and then you wake up.
从第一阶段开始,到下面的阶段,然后又往上,这时就出现REM睡眠,然后再一次次地循环,直到你睡醒。
The last thing I want to point out to you is, I started out with this list. I haven't added anything to the list, right? I mean I've got a different kind of looping mechanism.
我们从这个列表开始,我没往这个列表上加任何东西对不对?,我的意思是我学会了一种不同种类的,循环机制,我想我得说。
Remember what range does, it gives me a set or a collection or a tuple of integers from 0 up to 1 - is the last value, so it's going to give me everything from 0 up to the total number of heads.
我将要在这个循环范围内加上鸡的数量,记住循环范围的目的,它给了我一个从一开始的整数集合,或者数组,这是最后的值。
We start with j pointing here, and we can see what this loop's going to do, right? j is just going to move up.
我们让j指向这里,我们能看到这个,循环要做什么?,对吧,j要开始移动了。
As it's going up, it's circulating around your body.
伴随着胰岛素水平的升高,它开始在体内循环
They start next Thursday in the cycle.
从下周四开始循环
Now you start a process, a cyclic process, where the first step in the process is denaturing the DNA.
然后你就可以开始一个循环步骤,第一步是使DNA变性
If I'm iterating from I on the outside, I on the inside, I'm going to start changing the value and I might very well induce an infinite loop but J is okay.
如果我在外面从I开始迭代,或从里面开始迭代,我将开始改变它的值,我可能引起一个无限循环,但是用J是可以的。
OK, once it gets to the end of that, what's it going to do? It's going to come down here and, oh. What's that doing? Well I cheated when I started. I said, somebody's giving me a perfect square, I'm looking for the square root of it. But suppose 15 I gave this thing 15, and asked it to run.
好,一旦到了循环的最后,程序会去做什么?程序会跳到这里来,噢,这是干什么的?好吧,当我开始的时候我有点小作弊的意思,我说过,我得到了一个完美的平方数,我要求这个数的平方根,但是假设下我得到的数是。
If you start with only one, you have two pieces of DNA, then you'll get 2 to the Nth fragments after N cycles because each cycle you're doubling the number.
如果你从仅仅一个DNA开始,你有两条DNA链,经过N次循环后,就得到二的N次方个DNA片段,因为每次循环都使其数量翻倍
I can write it explicitly. I can write it inside of a FOR loop. And we've started to add, and we'll see a lot more of this, examples of collections of structures so that we don't just have to do something that can be easily described as walking through a set of things but can actually be a collection that you walk through.
我可以明确的写出来,我可以把它在FOR循环的内部写出来,然后我们开始学习了add这个运算符,我们会在以后学习很多的,集合的数据结构的例子,这样一来我们可以进行一些,很简单的遍历集合的操作,我想要为大家指出的最后一件事情是。
Well, main first declares a loop that starts here.
嗯,main函数,首先声明了一个循环从这里开始。
Cv The only difference is it'll be Cp instead of Cv, B but there it is for pathway B. There it is for C a pathway C. So the state functions that we're familiar with are doing what we expect they ought to be doing, right? If you go around in a cycle, starting and ending at the same place the state functions have to stay the same.
是Cp而不是,这是路径,这是路径,所以我们熟悉的态函数的行为,正与我们预期的相同,对吧?,如果你沿着循环走一圈,开始和结束于同一个位置。
应用推荐