self理解

来源:互联网 发布:新材料未来的出处 知乎 编辑:程序博客网 时间:2024/05/29 18:03


特此mark


a 为 self.

self 为 three,不过, three并没打印, 所以 输出为 "one two"






另一例:


 这个a , b 都是self.....
居然可以在一个类里头用不同的东西代替self....