為了解決這些問題,Python引入了super()機制,例子代碼如下: >>> class FooParent: def bar(self, message): print(message)
確定! 回上一頁