Explicitly setting inherited, unchanged __init__ vs skipping it in Python

前端 未结 0 787
野性不改
野性不改 2020-12-19 23:11

If a parent class and child class require the same __init__, I can think of two main ways to do this...

1. Use super() to explicitly declare

相关标签:
回答
  • 消灭零回复
提交回复
热议问题