回答編集履歴
1
追記
test
CHANGED
@@ -27,3 +27,19 @@
|
|
27
27
|
print(c)
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
---
|
34
|
+
|
35
|
+
私なら[more-itertoolsのsplit_into](https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.split_into)を使います。
|
36
|
+
|
37
|
+
```Python
|
38
|
+
|
39
|
+
c = list(
|
40
|
+
|
41
|
+
more_itertools.split_into(a, b)
|
42
|
+
|
43
|
+
)
|
44
|
+
|
45
|
+
```
|