質問編集履歴
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,13 +32,13 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
b = [1 2 3]
|
36
36
|
|
37
37
|
n = len(n)
|
38
38
|
|
39
39
|
for i in range(2,n):
|
40
40
|
|
41
|
-
b_pairs = (list(itertools.combinations(
|
41
|
+
b_pairs = (list(itertools.combinations(b,i)))
|
42
42
|
|
43
43
|
print(b_pairs)
|
44
44
|
|
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,9 +34,11 @@
|
|
34
34
|
|
35
35
|
li = [1 2 3]
|
36
36
|
|
37
|
+
n = len(n)
|
38
|
+
|
37
39
|
for i in range(2,n):
|
38
40
|
|
39
|
-
b_pairs = (list(itertools.combinations(
|
41
|
+
b_pairs = (list(itertools.combinations(li,i)))
|
40
42
|
|
41
43
|
print(b_pairs)
|
42
44
|
|