tsteuer лет назад: 5
Родитель
Сommit
cde7ea0209
2 измененных файлов с 12 добавлено и 0 удалено
  1. 11 0
      Animals/Birds.py
  2. 1 0
      Animals/__init__.py

+ 11 - 0
Animals/Birds.py

@@ -0,0 +1,11 @@
+class Birds:
+    def __init__(self):
+        ''' Constructor for this class. '''
+        # Create some member animals
+        self.members = ['Sparrow', 'Robin', 'Duck']
+ 
+ 
+    def printMembers(self):
+        print('Printing members of the Birds class')
+        for member in self.members:
+           print('\t%s ' % member)

+ 1 - 0
Animals/__init__.py

@@ -0,0 +1 @@
+from Birds import Birds