The code's more than 1,100 new articles would have increased women's rights by reforming laws with regards to land ownership, inheritance,education, employment and marriage.
VOA: standard.2009.08.27
Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.
现在我要把这段代码,复制到,大文件中的各个部分。
And notice because I have just one line of code inside of each of these branches, what have I clearly omitted?
请注意因为我在每个分支中只有一行代码,显然地我省略了什么?
In the Jan.14 issue of the journal Nature, Jackson and a group of scientists announced they have unraveled the genetic code of one common variety.
VOA: standard.2010.02.01
You don't have this particular code on your handout, you do have a code that uses the same concept.
在你们的讲义上没有这种代码,你可以看到相同概念的一个代码。
And the robot or the computer or what have you is just automatically, mechanically following the code commands of the program.
那些机器人,或叫做计算机等等,只是自动地,机械地执行程序的命令代码
So, you have this tremendous continuity between the sort of the honor code that was so dominant in the Homeric world, which has now been shifted to the larger unit, which is the polis.
现在你对荣耀法则的变迁应当有所了解了,荷马时期的主流是个人英雄主义,逐渐演变成现在对更广泛的集体,也就是对城邦的担当
In any event, many scholars through their analysis of these texts have been led to conclude that the Deuteronomistic School updated and revised earlier laws, particularly laws in the Covenant Code, but sometimes also in the older legal stratum of P; and they did so in keeping with the circumstances of the eighth to sixth century.
在任何事件中,许多学者通过分析都,得出结论即申命记学派更新,并修订了早先的律法,尤其是契约法典中的律法,但有时也包括比较早起的祭祀派律法;他们这样做,是为了与公元前6世纪到8世纪保持一致。
Because I might have written some code in which I'm expecting that integer particular variable to have an integer value.
因为我可能写了一些代码,来把一些,变量的类型,指定为。
But if I did have two lines of code or more, I would in fact need to put those back.
但是如果我的确有两行或更多的代码,我其实应该把花括号加上。
In a compiled language, you have an intermediate step, in which you take the source code, it runs through what's called a checker or a compiler or both, and it creates what's called object code.
而在编译语言里,你就会经过一个中间的步骤,在这种语言里输入源码后,先经过过滤器,或者编译器检查后,它会创建一个叫做目标代码的东西。
I want to show you how easy it is to change the code. But, notice, once I've added this I actually have a problem. This is now an under-constrained problem. I have more unknowns than I have equations.
我加上这个条件后,我马上面临一个问题了,这就是现在是一个非约束性问题了,我的未知数比方程数多,你从代数中可以知道。
So when you define a function, you have, as we've seen these curly braces, that define all ; of the code that's associated with that function; open curly brace code, close curly brace, that is the function.
当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。
Now you have a set of parentheses as we'll see int i=0 in actual code and then I have int I equal 0.
你将会在实际的代码中看到一对圆括号,比如,我们让。
Important lesson, so that there would be some predictability in the results and I would have some, if you will, smoke test for knowing whether or not I was getting, my code seemed to be working.
这很重要,因为这样我就可以预测,结果会是多少了,如果你愿意,我们可以做烟气试验,来看我的代码是否工作正常。
It's okay. So this first line of code, I will get it started but then I'm gonna have you take over and actually instruct Philip what to do here.
第一行代码就从这里开始,接下来我会让你,接管并指导飞利浦。
You write the source code, the stuff that looks like this and then you save your file, and now you just have a text file.
比如你们写出像这样的源代码后,保存,你将会得到一个文本文件。
And so what I was hinting at earlier when you put semicolons in the wrong place, and then proceed to have curly braces around arbitrary lines of code, you're creating an even more local scope there, which is generally not the right intended behavior.
在之前我暗示了,当你把一个分号放在错误的地方时,然后开始用花括号,括上任意行的代码,你在那里创建了一个局部范围,那个不是故意的行为。
I should also warn you that this code includes some Python concepts, at least one, that you have not yet seen.
我得事先说明这个代码中,包括了一些你没见过的Python语言的概念,至少一个。
Just like people have a genetic code, perhaps, that gives us various instructions that we begin to follow out, or certain innate psychology or what have you.
就像人类拥有基因编码,给我们传达各种各样,得以遵循的指示,或者是某种与生俱来的心理,等等等等
And what it's saying semantically is, using that variable as my placeholder, have it walk through this collection, starting at the first thing, execute that code, then the next thing, execute that code, and so on.
它的语义意思就是,把这个变量应用为我的占位符,用它来遍历这个集合,从第一个元素开始,执行代码,然后下一个元素,再执行代码。
So you know from algebra I can't actually solve this. There may be multiple solutions to this. What would I have to do to change my code? And the answer is fortunately not a lot.
我解不出来方程,可能会有多组答案,我需要怎样修改我的代码呢?,很幸运的,答案是不用修改很多。
OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.
好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。
If I decide there's a better way to get input, and there is, then I can make it to change what I don't have to change the code that uses the input.
如果我觉得有更好的获取输入的方法,我可以直接改去用这种方式,而不用更改使用了,输入处的代码。
Because if I don't specify a name for this input, I have no way of actually referring to it in subsequent lines of code.
因为如果我不给这个输入定义一个名字,在随后的代码中,我就没有办法使用它。
I don't happen to have one today because we're not going to do a lot of code.
今天我恰巧没带来,因为我们不会做很多代码。
At least you maybe finding that and if not when you look back at the code you then have written you'll realize that in fact it just requires a few lines of code.
至少你会发现这一点,不然的话,在你写完代码,返回去,看的时候你会意识到,实际上它只需要几行代码。
Now I have the ability to create a loop, that is, to reuse the same pieces of code over and over again as I go around.
现在我们已经学会如何创建循环了,也就是,重复的一遍又一遍的,执行同一片代码。
I want to just use it, I shouldn't have to worry about what variables I use inside of it, I have shouldn't have to worry about where that is in the code, I should be able to just abstract it away. And that's what we want to add today, are those two things.
我只是想使用它,我不用考虑我在这段代码中,使用的是什么变量,我完全不用考虑代码的内容,只要抽象就好,我们今天想补充的内容就是这两点。
I can't give it what it wants," know that when you're writing code and the problems that will remind of this, if you absolutely have to kill your program, you don't have to close the window, CTRL+C reboot crazy stuff like that, generally you can hit CTRL+C and it will just abort the program right where it is, in case you ever get trapped in some awkward situation.
我不能给它所要的“,当你在写代码时,程序将,提醒这个问题,如果你不得不,关闭这个程序,你不需要关闭这个窗口,重启像那样的疯狂举动,通常你可以敲,它将会在这个地方终止那个程序,假使你陷入了尴尬的处境。
应用推荐