Python: How do I make a subclass from a superclass?

后端 未结 11 1767
日久生厌
日久生厌 2020-11-29 19:01

In Python, how do you make a subclass from a superclass?

11条回答
  •  有刺的猬
    2020-11-29 19:41

    You use:

    class DerivedClassName(BaseClassName):
    

    For details, see the Python docs, section 9.5.

提交回复
热议问题