看板 [ Python ]
討論串[問題] 多重繼承以及super()
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 7年前最新作者djshen (djshen)時間7年前 (2018/08/10 01:55), 編輯資訊
0
0
1
內容預覽:
翻了一下source code. 相關的應該在這. https://github.com/python/cpython/blob/master/Objects/typeobject.c. 當你call super(C, self)的時候 會產生一個super object. 印出來長這樣 <supe
(還有1225個字)

推噓1(1推 0噓 5→)留言6則,0人參與, 7年前最新作者lv100 (Tsl)時間7年前 (2018/08/09 23:59), 編輯資訊
0
0
0
內容預覽:
各位python版的前輩大家好. 最近小弟在自學python. 到了多重繼承的這邊有點小疑問. 程式碼如下:. class Base(object):. def __init__(self):. print ("enter Base"). print ("leave Base"). class A(
(還有491個字)
首頁
上一頁
1
下一頁
尾頁