質問編集履歴
3
初心者マーク付け忘れ
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
ソースコードまちがえ
test
CHANGED
File without changes
|
test
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
self.b=b
|
112
112
|
|
113
|
-
self.x=self.a+self
|
113
|
+
self.x=self.a+self.b
|
114
114
|
|
115
115
|
def eval(self):
|
116
116
|
|
1
ソースコードの間違え
test
CHANGED
File without changes
|
test
CHANGED
@@ -104,11 +104,13 @@
|
|
104
104
|
|
105
105
|
'''二つの式の和に対応する式を表すクラス'''
|
106
106
|
|
107
|
-
def add(self,a,x):
|
107
|
+
def add(self,a,b,x):
|
108
108
|
|
109
109
|
self.a=a
|
110
110
|
|
111
|
+
self.b=b
|
112
|
+
|
111
|
-
self.x=self.a
|
113
|
+
self.x=self.a+self,b
|
112
114
|
|
113
115
|
def eval(self):
|
114
116
|
|