You can kind of see where the syntax is going, looks like a loop, but you can kind of put blocks inside of you, and the little arrow suggests that once you get to the bottom just like our socks example, you're gonna do the following again.
从某种程度上你可以看到它的语法构成,像个循环,你也可以把,一些程序块放到循环中,如同短袜的例子,这个小箭头暗示你一旦到达底部,你将会重复接下来的事情。
He just appears. But when it calls him a "tax collector," it doesn't necessarily mean that he was the one who owned the right for that whole area.
他突然出现,但书中称他“税吏“,并不一定是说,他负责那块地区收税工作。
In Scratch, the block you may have used for this idea literally says "or" for or; in C, two vertical bars.
在Scratch中,这个你用的程序块,照字面地想法来说“or“表示或者;,在C语言中,是两个竖线。
They don't, out of whole cloth, get it right the first time.
他们并不是一次性就从整块布料中,把这个程序提取出来的。
Meat Loaf sang the song "Two Out of Three Ain't Bad."
肉块乐队唱过这首歌“三个中占有两个就不错了“
It has often been pointed out that in the past 4000 years more wars have been fought for the possession of the tiny strip of land known as Canaan, or the land of Israel, or Palestine, than have been fought for almost any other area in the world.
很多人指出,在过去的4000多年中,为了占领这一小块土地,有过多次战争,这块叫迦南,或以色列或巴勒斯坦的土地,这些战争远多于世界其他地区。
I made them up out of whole cloth.
我相当于把它们从一整块布料中剪裁来。
And in Scratch did you probably see the key word "and" on one of the blocks.
在Scratch中,你们大概看到那个关键字,“and“在其中一个程序块中。
And when you call a function, one of the things X that happens is whatever your passing in, for instance, X, ; and if this is A, this thing gets copied into A; so at that moment in time of calling increment, I actually have two copies of the same value in memory but they're referred to by different names.
当你调用一个函数,其中发生的一件事情是,不管你输入什么,比如,或者是A,它把这个东西复制到A中;,调用increment的时候,实际上在内存中,有两个同样的值的内存块,但是它们有不同的名字。
It's reasonable because it's meant TMP for temporary purposes just to call it temp or T-M-P for short, X and I can define temp as -- why don't I set it as equal to X, initially, because now that I've stored X in a separate chunk of memory, I can now change its value and then I can say Y gets, not X, but temp, and so now I've actually swapped these values.
这是合理的,因为它是为,暂时的目的,只要叫它Temp或简称它为,我可以定义temp为--为什么我不把它设定为等于,最初的,因为现在我把X存储在一个单独的内存块中,我现在可以改变它的值,然后我说Y等于,不是X,而是temp,所以现在我交换这些值。
应用推荐