tsteuer 5 年 前
コミット
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