I'd really like to have that modularity that says, I'm only going to get access to the values, not by calling their names, but by calling some specific method to get access to their names.
这样我们就丢掉了代码的模块化,我很希望代码有这样的模块化:,我访问变量的值,不是通过直接调用它们的名字,而是通过调用某个可以,访问这些变量名的方法来访问。
Now we're going to I'm going a bit slow here but I'm going to use this method next time to introduce you to the most important class, sorry, the most important game we're going to see in the whole course.
接下来我们,我放慢一点,在下一讲我还要用这个方法,我要向大家介绍最重要的课程,抱歉,是整个课程中最重要的博弈
So another way saying it again is, when I call the class definition, by default I'm going to look to see is there an init method there, and if there is, I'm going to use it.
当我调用类的定义,默认的是语言要去查看,是不是有个init的方法,如果有的话,程序就会调用它,按照惯例。
应用推荐