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__()
时间: 2024-09-30 04:02:52
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__()