And we must know what the result is supposed to be. Typically when you run an experiment, you say, and I think the answer will be x.
这样我们可以来查看代码的进程,我们还必须清楚结果应该是怎么样的,比如当你运行一个实验的时候。
But for the next week or two when you're writing programs, at least for the first time, generally if you're trying Scratch to debug them like you might have been trying to troubleshoot Scratch, you're probably going to reason - through it by looking through the your code -- -- top to bottom, maybe engage a staff member for help -- but your friend will also be printf.
但是,在接下来的一两周内,当你们写程序的时候,或至少在第一次写的时候,通常如果你在调试程序,就像你们可能已经试着调试过,你们或许是通过查看你们的代码,来推断你们的程序-,从头到尾,可能还需要别人的帮忙-,但是你的朋友也将要打印输出。
When you go into a restaurant now, unless you want to go look at a board on the wall or get a pamphlet that may be hard to find, or go to the website, it's going to be pretty hard to know what you're eating in those foods.
现在当我们去餐馆吃饭时,除非看一看墙上的菜单板,或者是去翻往往很难找到的宣传册,再或者去网站查看,否则很难知道,我们在进餐时到底摄入了些什么成分
So another way saying it again is, when I call the class definition, by default I'm going to look to see is there an init method there, and if there is, I'm going to use it.
当我调用类的定义,默认的是语言要去查看,是不是有个init的方法,如果有的话,程序就会调用它,按照惯例。
It takes an int; deal with it when you get to it and then once you look through the whole file, should you find -- ultimately find the actual code that defines or impliments this thing.
它携带一个int数,当你获得了它就处理它,然后一旦你查看整个文件,最终你将发现实际代码中,定义或执行了这个东西。
应用推荐