質問編集履歴
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
File "<string>", line 1, in <module>
|
32
32
|
|
33
|
-
NameError: name '
|
33
|
+
NameError: name '東京' is not defined
|
34
34
|
|
35
35
|
```
|
36
36
|
|
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,9 +6,11 @@
|
|
6
6
|
|
7
7
|
def route(start, end , *args) :
|
8
8
|
|
9
|
-
route_list = [start
|
9
|
+
route_list = [start]
|
10
10
|
|
11
|
+
route_list += list(args)
|
12
|
+
|
11
|
-
route_list += [
|
13
|
+
route_list += [end]
|
12
14
|
|
13
15
|
str_route = "→".join(route_list)
|
14
16
|
|