stackoverflow上的这个问题有句话说静态成员函数说得比较好: Staticmethods are used to group functions which have some logical connection with a class to the class.
What is the difference between @staticmethod and @classmethod in Python? 3747 What is the difference between __str__ and __repr__? 3111 What is the difference between Python's list methods append and extend? 2170 What is the difference between venv, pyvenv, pyenv, virtualenv, vi...
Difference between @staticmethod and @classmethod What is the difference between Python's list methods append and extend? What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc? What is the difference between old style and new style classes in Python?