So really, the rule of thumb if you think back to Scratch is — that any time you write a statement — — something that does something in one line of code — you generally need the semicolon there.
实际上,根据经验,你们回忆一下在Scratch中,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。
You can edit the stylesheet line-by-line directly in this document as well, create new stylesheets from scratch, or paste in existing stylesheets.
您也可以在这个文档中一行行地编辑样式表,从零开始创建新的样式表,或者粘贴现有的样式表。
What they still lack is technological know-how, systems integration, being able to design new vehicles from scratch and get them to a manufacturing line.
它们如今所欠缺的是核心技术、系统的整合能力、以及从零开始设计汽车并将其投入生产线上的能力。
But what looks like this orange block as of now in Scratch, add orange to your so called inventory, well, it's gonna take at least two lines of code in C to actually create the inventory array with this first line and then put something like the word orange inside of it.
就好比Scratch里面橘色的这一块,把“桔子“加到所谓的“清单“里面去,在C语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
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,术语中叫做,一句代码,你就不需要使用花括号了;,如果那个条件成立,你有两行或更多行的代码时需要执行时,你就需要花括号。
应用推荐