質問編集履歴

2

書式の改善

2021/06/07 03:27

投稿

rihitoban
rihitoban

スコア25

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 '大阪' is not defined
33
+ NameError: name '東京' is not defined
34
34
 
35
35
  ```
36
36
 

1

書式の改善

2021/06/07 03:27

投稿

rihitoban
rihitoban

スコア25

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, end]
9
+ route_list = [start]
10
10
 
11
+ route_list += list(args)
12
+
11
- route_list += [args]
13
+ route_list += [end]
12
14
 
13
15
  str_route = "→".join(route_list)
14
16