Grouping Functions by Using Classes in Python

后端 未结 3 1539
小蘑菇
小蘑菇 2021-02-01 16:14

I have been a Python Scientific Programmer for a few years now, and I find myself coming to a sort specific problem as my programs get larger and larger. I am self taught so I h

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 16:50

    I think doing so is perfectly pythonic. This is exactly the purpose of staticmethod constructor.

    For python conventions, see PEP 8.

提交回复
热议问题