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.

 

 

posted on 2016-09-17 20:33  J·Marcus  阅读(209)  评论(0编辑  收藏  举报

导航