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..
제발 ... 나는 부모 클래스 '자기를 얻는 방법을 알아내는 시간을 보냈다! 실패했습니다 .. 파이썬 전문가가 필요합니다!부모 클래스 '자아를 어떻게 얻을 수 있습니까?
왜 "부모 클래스의 self.x"가 필요한지 설명 할 수 있습니까? – seb