OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
Weird things, bad things can happen and so one of the lessons too that will be repeated throughout the course is to actually rigorously error check and make sure that you're always thinking about your user being a bad guy.
各种古怪的事情就会蜂拥而至,所以在这个课程中我反复强调,要一丝不苟地检查错误,你就当你的用户是个调皮捣蛋的家伙。
And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.
在循环外面初始化它,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。
If we looked at all 30000, genes that were important in each individual how do you pick out which ones are important for a particular disease?
如果我们检查人体中,所有三万个至关重要的基因,要怎样从中找出,导致某种疾病的特定基因呢
Not everything is going to get caught in static semantics checking.
并不是所有的错误,都会在静态语义检查中被捕获。
So now, in this case, this code is going to, when we get here, check, and if you haven't seen that strange thing there, that exclamation point in bang computer-ese called a bang, it says x if ANS star ANS is not equal to x, all right?
那么现在,在这个例子中,当我们执行到这里,代码会去检查,如果你没有看到过这个奇怪的东西,这个感叹号在计算机学中被叫做,代码的意思是如果ANS的平方不等于?
Now if you look at that list, there is actually something I didn't seem to check, which is, I said I wanted a float stored in hyp.
看下上面的清单,实际上我还有一些东西忘了检查,也就是说hyp中存储的,应该是浮点数类型。
The reason for pulling this out is, what you're going to see is, that in most languages, all right, Python comes built-in with something that will check your static, sorry, your syntax for you.
讲这些的原因在于,你们将要看到的是,在绝大部分语言中,好的,Python中带着一些,会检查你的static的东西,抱歉,是你的语法。
Every cell in your body has exactly the same DNA; that is if I could stretch out all the DNA and look at the base pair sequence, the sequences of bases along all the DNA in your chromosomes, they'd be identical in all the cells.
身体内每一个细胞都有完全相同的DNA,如果我把整条DNA展开,然后检查其碱基对的顺序,你体内每个细胞中染色体上,DNA的碱基对顺序,都是完全相同的
应用推荐