您的位置:首页 > 编程语言 > Python开发

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

2017-05-17 22:04 761 查看
stackoverflow上的这个问题有句话说静态成员函数说得比较好:

Staticmethods are used to group functions which have some logical connection with a class to the class.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐