class Test1:
def __init__(self):
self.x = 1
class Test2(Test1):
# how can I get parent class's self.x ??
# exactly here not def __init__(self) or other methods in Test2..
しばらくお待ちください...親クラスの自己を取得する方法を理解する時間を費やしました!失敗しました。 私はPythonの専門家が必要です!親クラス 'selfを取得するにはどうしたらいいですか?
「親クラスのself.x」が必要な理由を説明できますか? – seb