The writers on the syllabus consistently try to imagine a way to make those claims, make those claims for the primacy and the importance of what they do.
大纲里的作家一直在尝试,设想出一种方法来提出要求,把他们写的书放在首要地位,使他们的要求得到重视。
Okay? So the best way for writing to create a habit is start a journal.
可以吗?所以写作的最好方法是培养写日记的习惯。
And the second thing that we talked about is this idea that we want you to in fact learn how to relate a choice you make about a piece of code to what the efficiency is going to be.
关于这个方法第二件事,就是我们实际上希望,你在写代码的时候,能做出优化效率的选择,因为此。
Milton clearly wants us to know that this Nativity Ode was written by a young Londoner in 1629, but it's a poem that is at the same time deliverable to the infant Christ by some extraordinary violation, of course, of all of the established laws of temporal sequence.
显然弥尔顿想让我们了解这首《圣诞清晨歌》,是在1629由一位伦敦年轻人写的,但是它同时也是一首,通过非同寻常的方法能够交到圣婴手里的诗,当然这就需要他违反现有的一系列法律。
This is where the solution, by the way, to bringing together--and you could write this down-- to bringing together all the warring countries and religions of this planet is an alien attack.
顺便告诉大家,这个办法,是让…你们可以写下来-,让敌对国家合作的方法,让地球上的宗教合作的方法就是外星人袭击。
So we have to come up--we mortals-- have to come up with some other device, and our device to remember things is to try to write it down because my premise here is, if you can write music down clearly you are hearing it, clearly, and you would have a better chance of remembering it if you could write it down.
因此我们普通人,必须开发出,不得不开发出一些其它的方法,而我们用来记忆的方法,就是试着写下来,它的前提是,如果你可以将听到的音乐清楚地写下来,很清楚,那么你就更有可能,记住它,前提是你能写下它
It's looking at the end test. It's looking at the kinds of conditions you're going to put in.
写代码的方法了,也就是通过讨论终结测试,通过讨论放入的条件。
Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.
让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。
A different function to compare polar versions of these points.
我可以假设去为比较相同的店,再去写一个方法。
We write specifications of our functions.
此外我们还为方法写了说明。
For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?
对于后者来说,运行测试用例,对它会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?
Some of which I built: cmp, init, str. And there, notice, are the internal definitions And in fact I should've said, we often call those things fields.
就是给我一个所有东西的列表:,所有的方法,与这个类关联的,有一些是我写的:,还有这里,请注意,是一些内部的定义。
I'm going to write a function to compute integer power exponents.
我要去写一个,计算一个整数幂指数的方法。
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
So I don't know don't, John, I would argue if I'd written this better, I would have had a method that returned the x- and the y- value, and it would be cleaner to go after it that way.
我会去辩论这么写是不是更好,我也可以写一个,返回x坐标和y坐标的方法,这么做可能会更清楚一点,这是很棒的缩写,好。
应用推荐