回答編集履歴
1
修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
class test2:
|
20
20
|
|
21
|
-
def __init__(self, name):
|
21
|
+
def __init__(self, name=""):
|
22
22
|
|
23
23
|
self.name = name
|
24
24
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
a = test2(
|
31
|
+
a = test2()
|
32
32
|
|
33
33
|
b = test2("b")
|
34
34
|
|