So, the final step in the story is syntax.
所以语言的最后一个成分便是语法了
Now, let me just make the last point I want to make about this, and that's that because language is material, it has form, it has both closedness and possibility, it's susceptible to the workings of craft, it's also unpredictable. Tosses mobius strip on floor.
让我说关于此事的最后一个观点吧,正因为语言是物质的,它有固定模式,它没有尽头又充满可能,它易受,工艺品的影响,它同时也是不可预知的。
OK. In order to talk about Python and languages, I want to do one last thing to set the stage for what we're going to do here, and that's to talk about the different dimensions of a language.
好,为了谈论Python语言以及其他,我想做,最后一点儿准备,那就是讨论一种语言的,不同维度。
You can actually declare in C synonyms using special syntax that says, you know what, even though yes at the end of the day I'm implementing false as a 0 and true as a 1, I can abstract away from that detail and use words that are more intuitive to me like true and false.
实际上,你可以用C语言中的特定的语法,你们懂得,虽然到最后,我把0当成假,1当成真来看,我们也可以从这些细节中抽象出来,使用像“真““假“这样更直观的词。
And you'll find in the end that recursion is a feature of a language, it allows you to map some very obvious concepts like the phonebook tearing in half and half and half and half to actual code without it using some arbitrary human contrived framework like a for loop or a while loop which are much more stilted mechanisms.
最后你会发现递归是某种语言的一种特征,你可以用它将一些非常明显的思想,比如将电话簿划分为一半又一半,映射为实际代码,而不必使用那些人为框架,像for循环,while循环之类的,那是很呆板的机制。
应用推荐