It's an historical question, as I say, and I want to devote the rest of the lecture to it.
这是一个历史问题,正如我刚刚说的,我会用剩下的时间讲讲这个问题。
I'm, like I said, working, I'm a student,
我呢,就像我刚刚说的,干活,我是一个学生,
All right, c p 1 dot y, x I've said assign that to the value 2, 2,0. So now c p 1 has inside of it an x and y value.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
A very good example of that is what I've been telling you; that's really what happens. And here's another thing, if you go to the end of the Greek story, when you think about political theory, there's Plato.
我刚刚讲的就是一个很好的例子,确有其事,还有另外一个例子,当我们走到希腊神话描述的那个时代的尽头,当你思考政治学说时,柏拉图会给予你启示
It's perfectly legal in Python to type that in and get the value back out.
正如我所说的,我更希望用一个,我刚刚写的访问器。
I just reduced it to a smaller version of the same problem.
我刚刚把它简化为一个更小的同类问题,这就是我可以写出能解决更短字符串的例子。
So STR, which I just typed up there, takes in parens, some input, and it converts it into a string, so that now I can use that John where I was expecting a string. John.
因此STR,也就是,我刚刚输入的,然后把这个输入变更为一个字符串,因此现在我就能,在需要用字符串的地方使用这个对象了。
And by just doing that, bug I just spotted, there's a bug here.
我刚刚这么做了,就发现了有一个。
If I want to get values back out, p I could in fact simply send to that instance a message, in this case I could say p dot x.
我就是,我刚刚在这里输入的,我得到了一个c,point的实例,如果我想把值取出来,实际上我可以。
应用推荐