1 May
2014
1 May
'14
9:35 a.m.
1.Provide suport for class method/static method/instance method by using self and cls keywords Define class method by the first argument cls, cancel the @classmethod, like : def classInfo(cls):pass Define instance method by the first argument self, like : def save(self):pass Define static method by none special argument, cancel the @staticmethod, like : def getInstance():pass 2.Cancel property statement, use a new keyword ppt to define properties, like : ppt Name(): def get(): pass def set(value): pass def del(): pass 3.Use a new keyword base to replace the function super(). 2657068483@qq.com