It gives you a lot of expressive convenience, you can write the programs much more cleanly, but most importantly, it's fast.
你可以把一些程序写的更清楚,最重要的是,它的效率非常高。
So I'm actually writing my own fiction, and no, it's not easy. But you can actually learn from, if you read other writers.
我现在也正在写自己的小说,真的不容易。但是你可以从你以前阅读的作品中学到很多。
We could get away with just 23 Sodium you could write sodium like this.
从23,钠,我们就知道了,你就可以像这样写钠。
So, you know, you can start writing your own kind of, Miss Manners book, if you like, I mean, are what are good programming, you know-- I wonder what you'd call them, John, good programming hygiene?
因此,你知道,你现在可以开始写,自己的女士礼仪书籍之类的东西了,如果你喜欢我这么说的话,其实我的意思是,写一些关于优秀编程习惯的东西?
This is simple. You could write it up very short and that will be a passing grade if you just write it up very short.
但这一篇很简单,你们可以写得很短,我会给你及格,如果你写得短的话。
Well, you can if you want.
好吧,你想写也可以
The curly braces are then the C's way of kind of making a puzzle piece that looks like this so you can put stuff inside.
花括号是C语言的一个方式,用来做一个像这样的程序块,所以你可以把代码写在里面。
It's really fun. You can ask them, "So what were you thinking when you wrote this?" or
这也很有趣。你可以问这些教授,“您在写着一段的时候是怎样想的呢?”,或者说,
Enzymes, thyroid, etc., the abs, the serotonin, you can pick some part of the body.
比如,酶,甲状腺素等等,还有生物素,血清素,你也可以选择身体的某一部位来写
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.
因此我们普通人,必须开发出,不得不开发出一些其它的方法,而我们用来记忆的方法,就是试着写下来,它的前提是,如果你可以将听到的音乐清楚地写下来,很清楚,那么你就更有可能,记住它,前提是你能写下它
with, like, things written on it, like, notes you've taken or things you want to remember.
你可以在那张纸上写些东西 ,比如你以前做的笔记,还是你想记下的内容。
It's just a general essay about anything you want to write about.
文章的内容很笼统,你想写些什么就可以写些什么。
If you're wondering what's OK or what's not OK, it's very clearly written out in this handout, so make sure you read through it, because it is your responsibility to make sure that your calculator does not have anything extra programmed in it.
如果你不清楚什么可以什么不可以,讲义上写得很清楚,所以请大家务必看完它,因为你有义务保证,在自己的计算器里,没有编上额外的程序。
And the reason I want to show you this is to notice that the recursion can be doubled.
如果我来写斐波那契数列你可以看看这儿,原因是我想让你看看这部分的递归可以翻倍。
Now, you think you can make a mistake on your exam, take a look at this up here at tell me what that all is. I have no idea.
你觉得你可以在考试的时候犯错误,看一看这之前写的东西,能告诉我这些是什么,我也不知道。
We can start having complex expressions, you can imagine we can have things are lots of parens, and all sorts of things in it. Yes, question.
我们可以开始写复杂点的表达式了,你可以想象,我们有一个很多括号的表达式,里面有各种各样的东西,什么问题。
Right now, you've got to write it in one file.
现在,你可以把它写在一个文件里。
You could go into as much detail as you want.
你想写多详细都可以。
You could also write it up a bit longer.
你也可以写得长一点。
Because didn't you say you could do things like just %f?
因为你没有说你可以写像%f这样的?
There's rice, coconut, cabbage soup diets, so you could use that kind of theme.
比如米,椰子,卷心菜汤减肥法,你也可以写这个主题
You can write on the edge. I don't care.
你也可以写在边缘,我不在乎。
Not possible, but you could write a book about it.
这实际是不可能的,但你还是可以写它
You can write a diet book.
你可以写一本减肥书
It's something that someone else wrote or maybe you wrote, but you can encapsulate all of your ideas or your functionality inside this thing called a function.
它是别人或你自己写的,但是你可以压缩你所有的想法,或者你这个东西里面的功能叫做一个函数。
They're from all over the place, so you could make up your own one on that.
到处都可以写,你也可以自己写一本
If you want your thing could be one sentence long but it could be longer.
你喜欢的话,写一句话也可以,最好就比一句话长。
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
You could also write a diet book regarding a place.
你也可以写一本关于某个地方的书
应用推荐