So the inventor of the chess game said, "Ok. What I like is on the first block, first square, I would like one grain of rice.
于是象棋发明者说,“好吧,我希望,在第一个方格上,我想要一粒大米。
You show the baby, say a six-month-old, a stage with a block on it.
将一个木块放在平台上,然后让一个六个月大的婴儿来观看
Well, this block here on the left that I came counter counter=0 up with arbitrarily sets a variable called counter equal to 0 and then it forever says that counters value 1 and then it changes the counter by 1.
大家看一下左边的这一段代码,其中有一个随便定义的变量,它会一直显示counter的值,每显示一次,counter加。
We'll give it a name, but by linking that T to that T, we can also figure out the same T must be exerted on this one by Newton's third law, because if this block is the only one that could be pulling this rope with T.
我们先给它命个名,把这个 T 和那个 T 联系起来,利用牛顿第三定律,我们可以知道这个 T 也一定作用在这个物体上,因为如果这个物体是唯一,受到绳子拉力 T 的物体
And so, we walk that distance from Pierson College down to the York Street Gate, over to Chapel Street, make the left on Chapel Street, another block down to High walk into the Starbuck's.
然后,我们从皮尔逊学院出发,沿着约克街走,越过新教堂街,向左转,又穿过一条街道,走到星巴克。
But if you avoid all of these minutia and focus really just on the idea, it looks like what was a blue say block, a so called statement, is now going to be something called printf where the F happens to stand for formatted.
但是如果你抛开所有这些繁琐的细节,把注意力集中到,它的编程思想,那么它只不过一个蓝色的say程序块,是一个声明,即所谓的printf函数,其中的f是,用于格式化输出。
应用推荐