From 2a2ed485012d735f92799b7296b2d9b073912818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Thu, 13 Jul 2023 16:09:10 +0300 Subject: [PATCH] a.init example --- python-temel/a.init.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 python-temel/a.init.py diff --git a/python-temel/a.init.py b/python-temel/a.init.py new file mode 100644 index 0000000..9092b9c --- /dev/null +++ b/python-temel/a.init.py @@ -0,0 +1,9 @@ +class A: + def __init__(self): + print('A.__init__') + +class B(A): + pass + +print(B.__mro__) # (, , ) +b = B() # A.__init__ çağrılır