What is the difference between @staticmethod and @classmethod in Python?

stackoverflow上的这个问题有句话说静态成员函数说得比较好:

Staticmethods are used to group functions which have some logical connection with a class to the class.

posted @ 2017-05-17 22:04  IT由零开始  阅读(121)  评论(0编辑  收藏  举报