Alright, we are back so we just wrote a programming pseudocode or walk through a programming pseudocode.
继续上课,刚才我们只写了一个伪代码,或者说简单地过了一下。
really easily just based on your... because you're the one writing the program,
真的很简单,就看你的……因为是你在写程序嘛。
So let me just to try something a little more interesting, and then we'll get to writing some simple programs.
让我们来试试更加有趣的,一些事情吧,然后,我们再去写一些简单的小程序。
And we can also write this in an even simpler form, which is what's called electron configuration, and this is just a shorthand notation for these electron wave functions.
而且我们也可以将它,写为一个更简单的形式,它叫做电子构型,这个仅仅是这些电子波函数的。
So I am going to on the fly write a very simple little main program that just illustrates some of the syntax that we can then visualize more interesting.
我很快的写了一个很简单地小程序,来说明一些语法,我们使它变得更有趣些。
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.
但这一篇很简单,你们可以写得很短,我会给你及格,如果你写得短的话。
I think they motivate a lot of what -I'm going to write a number of principles of behavioral finance down and just mention them briefly and then return to regulation.
我认为他们促进了这些...,我先写一些行为金融学的原理,只是先简单地过一遍,再回到市场监管
So while you're filling that out, let me tell you a little bit about what we're going to be doing here.
你们一边写一边听我说,我来简单地介绍一下这门课
In the most famous of these letters, the lengthy seventh one, he gives us, again, something of an autobiography and tells us a little bit about why he came to write this book.
这些书信中最著名的,是冗长的第七封,他写下类似自传的东西,并简单地讲述了,为何他要写这本巨著。
You remember he's written his father in "Ad Patrem" that the trade, the vocation of poetry -- it may be homely and slighted in his father's eyes, but it was of course worth all of Milton's time, all of Milton's uncessant care and investment.
他在写给父亲的Ad,Patrem中说,写诗这个职业在父亲看来或许,简单无趣,却值得弥尔顿付出所有的时间,精力,和投资。
And that then let's me get to, basically, base this code. Having done that, height I simply call base with get float, I call height with get float, and do the rest of the work.
现在让我们看看这段代码,其实已经写好了,我简单的调用下,用来得到一个浮点数,再调用下,来得到另外一个浮点数,然后做剩下的工作就可以了。
shell What I have here is a Python shell, and I'm going to just show you some simple examples of how we start building expressions.
好,这是一个Python的,我会给大家看一些,关于写表达式的简单的例子。
What that basically says is the following: in an interpreted language, you take what's called the source code, the thing you write, it may go through a simple checker but it basically goes to the interpreter, that thing inside the machine that's going to control the flow of going through each one of the instructions, and give you an output.
也就说,如果是解释语言的话:,你要写一些叫做,源码的东西,你写的东西会经过一个简单的过滤器,然后解释器会处理你的源码,解释器会产生一个,逐条读取你的源码的,控制流,然后返回一个输出结果。
So here is the simplest program which is perhaps an ironic statement that you can implement with this language called C. So it takes a few lines of code to actually get something up and running and as you'll recall last Friday, I didn't even get this up and running because part of the process of writing a program is to one, write it.
让我们回到这个最简单的程序,你们也许觉得啼笑皆非,这么简单的例子,用C语言写出来就可以了嘛,的确只需要几行代码,就可以让这个程序跑起来,就像上周五的那样,我之所以没让它跑起来,因为编程步骤之一,就是“写“
应用推荐