What difference would it make had Frost, as he could have, I suppose, reversed the order of lines 13 and 14?
如果把13行与14行颠倒之后,会发生什么呢?
you can take clinics if you want to get your hands dirty and start practicing law,
如果你想要入行,开始做律师,你可以去法律实务班,
But if I did have two lines of code or more, I would in fact need to put those back.
但是如果我的确有两行或更多的代码,我其实应该把花括号加上。
Look at line fifty-five: "Ay me, I fondly dream! / ?" Had ye been there -- for what could that have done?"
看第55行:“哎,我啊!,我在痴呆的幻想/,如果你们女神们在那儿,又能怎样呢“
He goes on in this vein for that whole paragraph if you just skim down.
如果跳过下面这些行读下去会看到他还在延续了这一脉络。
I think if they want to send more troops that's fine.
我认为如果他们想多增兵那也行。
Whereas, if we go across a row, what we see is that the atomic radius is decreasing.
然而如果我们沿着行来看,我们会看到原子半径在逐渐减小。
I invite you to ask questions in class or, if you prefer, after class as well.
我邀请你在上课的时候提问,如果你愿意的话,课后也行。
They let you practice as an attorney if you haven't gone to law,
如果你没有干过律师这行,他们也会让你当律师,
So it's these little differences that you'll very quickly acclimate to but it's these stupid little syntactic details that trips off, especially those less comfortable early on because if you leave out a single character, namely that semicolon on the right hand side, nothing will work.
你会很快适应这些,微小的区别,但我们正是要把这些罗里吧嗦的语法细节,尤其是那些让人非常头大的句子啃下来才行,因为如果我们一旦遗漏掉某个符号,譬如一个分号,从另一方面看来,很有可能什么都工作不了。
It's a fantasy, of course, because no such brainwashing is going to be possible, just as the fallen angels - if you look at line 607 - will be barred from drinking their fill of the river Lethe, forgetfulness is impossible.
当然这是一次幻想,因为这种洗脑,根本就不可能实现,就如同那些堕落天使一般,如果看第607行7,他们被禁止喝忘川之水,遗忘是不可能的。
So this line or these lines of code up here are arguably constant time steps to say if N is less than 2 in return, that it will always take maybe one step, maybe two steps, some number of fixed CPU cycles.
如果N小于2并返回,那么这些行所对应的代码,通常只需要执行一步,或者两步,具体数字与CPU周期有关。
So generally, if you don't get an error message in a command line environment like this, that's good.
一般来说,如果你在命令行界面,没有收到错误信息,那就是好消息。
So the fact that line 9 did not match, if you find a matching sock which we didn't, that means we immediately jump to the else which is line 13 and so Philip now has to do what?
事实上,第九行我们没法匹配,如果你没找到匹配的袜子,这意味着我们立即跳转到第13行,所以现在Philip做什么?
As an aside, if you ever just have one line of code that you want to execute, one puzzle piece in Scratch terminology, ; you actually don't need the curly braces; you only need the curly braces if you have two or more lines of code that you want to execute if that condition is true.
此外,如果你只有一行代码,需要执行,在Scratch,术语中叫做,一句代码,你就不需要使用花括号了;,如果那个条件成立,你有两行或更多行的代码时需要执行时,你就需要花括号。
So in other words, if you terminate these lines early, if you terminate the four loop early, if you terminate an if condition early with that semicolon, the code may very well work; and this is a common source -- of frustration and conundrum because you don't -- because your code looks right and yet it's misbehaving, but that semicolon means stop looking for subsequent lines of related code.
换句话说,如果你用分号过早的终止了这些代码行,如果你过早地终止了那个for循环,如果如此,一个if条件,代码可能可以运行,这就是,挫折和问题产生的源头,因为你没有-,因为你的代码看起来是正确的,但是运行是错误的,那个分号的意思是,停止寻找后面相关的代码。
应用推荐