回答編集履歴
1
リストに変換
test
CHANGED
@@ -10,15 +10,13 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
# y = [items for items in zip(*x)] # 下の三行と同じ結果
|
13
|
+
# y = [list(items) for items in zip(*x)] # 下の三行と同じ結果
|
14
14
|
|
15
15
|
y = []
|
16
16
|
|
17
17
|
for items in zip(*x):
|
18
18
|
|
19
|
-
y.append(items)
|
19
|
+
y.append(list(items))
|
20
|
-
|
21
|
-
|
22
20
|
|
23
21
|
|
24
22
|
|