Before long we'll see that you can actually put things inside those parentheses which make your programs even more useful.
不久之后,你们就可以看到,我们是可以在括号里面加参数的,这些参数可以让你的程序更有用。
Anything where you're actually keeping track of something like a score that's having a variable that you increment -- plus, plus, or decrement, minus, minus, using the appropriate puzzle piece could certainly be compelling.
你需要保存像分数这样的事物时,你就需要一个变量,它可以自加,++,或者自减,要使用正确的拼图。
So, having other particles around that have the same energy that you could technically add up if you were adding them up like a wave, you can't do the same thing with particles, they're all separate.
所以,如果它们是波,你可以把其他的,拥有相同能量的粒子加起来,但是你不能把这些粒子加起来,因为它们是分离的。
And he quite correctly, because he's more senior than I am, more experienced than I am, said it's actually a good thing.
你可以用加法来加浮点数,他很明显是正确的,因为他比我年长些,比我更有经验些。
Everyone knows from calculus that if you're trying to find a function about which you know only the derivative, you can always add a constant to one person's answer without changing anything.
学过微积分的人都知道,如果你想根据已知的导数,求出其原函数,你总是可以给某人的答案,随便加一个常数,且不影响结果
In which I said, you know, I didn't like the fact that things like plus are overloaded, because you can use plus to add strings, you can use plus to add numbers, you can use plus to add floats.
那个玩笑是这样的,你们懂得,我并不喜欢,加法被重载这样的事情,但是你可以用加法,来对字符串进行合并,你可以用加法来加数字。
And just to look ahead a little bit, you could easily imagine that I might want to not just put a statement in there, what the specs are, I might want to put some constraints. Some specific things to check for, to make sure that you're calling the code right.
这不仅是抽象的概念还有规范的概念,我们再往前看看,你可以简单的想象得到,我不仅仅是想在这里加一个声明,这些规范说明中我还想加一些约束,我们要注意一些特殊的事情。
Well, that program was interesting because it had an inventory which was implemented in Scratch with a list which is kind of like a container that you can add things to again and again.
那个程序很有趣,它有一个用Scratch做出来的清单,还有一个貌似容器的列表,你可以不断往里面加东西。
Another way of saying it is, I've actually said, what did I use there, and , It's basically saying there is the first point, there's the second point, add them together and I get that point.
我要去做的是-对不起,再运行一次-好,你可以看到我已经把,这两个点的坐标值加到一块儿了,然后返回了r的值,我会让大家看到我们,实际上得到的是什么,这看起来不错,好,我做了正确的操作。
应用推荐