Python中的cls与self的区别

主要区别:cls是类本身的一个对象,self是类实例的一个对象


介绍了@classmethod与@staticmethod的区别。

http://stackoverflow.com/questions/12179271/python-classmethod-and-staticmethod-for-beginner

posted @ 2016-07-18 13:50  大海星  阅读(824)  评论(0)    收藏  举报