回答編集履歴
1
追記
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
itertools.groupbyで。
|
1
|
+
[itertools.groupby](https://docs.python.org/ja/3/library/itertools.html#itertools.groupby)で。
|
2
2
|
|
3
3
|
```Python
|
4
4
|
|
@@ -33,3 +33,13 @@
|
|
33
33
|
print(dst)
|
34
34
|
|
35
35
|
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/FaEkUEHJYfkXjoL8)
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
[('a', 'd', '100'), ('b', 'v', '213')]
|
44
|
+
|
45
|
+
```
|