- So this commands, number two here -- can someone just quickly translate into the English what it is doing for us? Yeah?
所以这个命令,在这里的第二个-,你们谁能快速地把它翻译成,英语来说明这是干什么的吗?,请说?
It's words to you, or to the reader of the code, that are telling you what's going on inside of this code. OK?
注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?
So, I'm getting a string and so what really am I doing in this line of code?
那么,我得到一个字符串,这行代码实际上是干什么的呢?
It is my place, as a programmer, to write information to the user.
这个规范到底用来干什么的呢?,这是我的空间。
You want to write the specs so that everybody does in fact know what this piece of code is doing, and you're writing it each time around.
但是你得养成良好的习惯和编程风格,你得撰写规范说明从而保证,每个人都知道这段代码是干什么的。
So, what are we really doing in this line of code here?
那么,这一行代码是干什么的呢?
str Anybody have a sense of what that's doing?
下划线,下划线,有人知道这是用来干什么的么?
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.
好,一旦到了循环的最后,程序会去做什么?程序会跳到这里来,噢,这是干什么的?好吧,当我开始的时候我有点小作弊的意思,我说过,我得到了一个完美的平方数,我要求这个数的平方根,但是假设下我得到的数是。
So what does this line of code do?
这一行代码是干什么的啊?
应用推荐