質問するログイン新規登録

回答編集履歴

1

def __init__\(self\)を追加しました。

2017/05/28 06:15

投稿

_Victorique__
_Victorique__

スコア1392

answer CHANGED
@@ -2,11 +2,17 @@
2
2
 
3
3
  ```python
4
4
  class Sampel:
5
+ def __init__(self):
6
+ pass
7
+
5
8
  def AAA(x,y):
6
9
  print("hello world to {} and {}".format(x,y)
7
10
  return 0
8
11
 
9
12
  class Sample2:
13
+ def __init__(self):
14
+ pass
15
+
10
16
  def BBB(x,y):
11
17
  #AAA(x,y) <-この中でAAAの関数を呼び出したいです
12
18
  sampel = Sampel()#Class Sampelのインスタンス作成