We could certainly implement this much more efficiently by just writing this one line of code, but, again, the key here is to take this step toward decomposing our code into chunks of code.
我们可以写这一行代码,使代码的执行更有效率,但是,这个关键字用来把我们的代码分解,成一段段的。
So you can think of a new line as being rolling the paper up so you're on a new line but a carriage return moves the cursor or moves that writing head all the way back to the left.
你们可以把换行想象成翻纸,把回车当做是将光标,移动到最左边。
I shouldn't even say script; that sounds like he's writing a nice cursive line.
我不应该称之为手迹,听起来像他们在写漂亮的弧线
If you're writing a one line function, whose sole purpose in life is addition, and, clearly, this is about addition, well, then it's, in fact, A reasonable to use a shorter symbol like A, but I do have to specify it's type.
如果你在写一个一行的函数,它唯一的目的是,做加法,显然这是关于加法的,好的,实际上,用一个短的标识符是合理的,像,但是我必须指明它的类型。
应用推荐