首页 > 代码库 > python:how does subclass call baseclass's __init__()

python:how does subclass call baseclass's __init__()

 First, use baseclass‘s name to call __init__()

I wrote code like this:

技术分享

 

技术分享

 

and we can use ‘super‘ too.

技术分享

 

技术分享

 

python:how does subclass call baseclass's __init__()