So in addition to for loops like this, know that there are while loops.
除了像这样的循环之外,你们知道还有while循环。
So unlike Scratch where you pretty much had to say "repeat" ten times or whatever, or forever where it's just "forever" with for loops, -- can you actually specify a finite number of iterations -- and as I learned 15 years ago, finite is important.
所以不像Scratch,你大致上需要用,“repeat“10次或更多,或者需要不断地使用当它,是死循环时,你们能够指定出一个有限的迭代次数-,像我15年前学的,有穷的是重要的。
These are things like FOR and WHILE loops.
比方说for和while循环语句。
Okay, not to dwell too much on math because you can very quickly bore someone in computer science by dwelling too much on math but it's useful even for logical constructs as we'll see with loops.
不要过于纠结于这些数学问题了,在计算机领域,你会很讨厌那些,在这上面钻牛角尖的人,但是对于那些,像循环这样的逻辑结构又是很有用的。
Because the for loop hands me placeholders in between those semicolons for variables and such, now I don't have those with while loops.
因为for循环给我提供了为变量准备的占位符,它们在分号之间,现在在while循环中,我没有这些。
应用推荐