回答編集履歴

1

追記

2019/06/03 05:59

投稿

LouiS0616
LouiS0616

スコア35660

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
+ ```