質問するログイン新規登録

回答編集履歴

1

修正

2018/03/05 05:08

投稿

LouiS0616
LouiS0616

スコア35678

answer CHANGED
@@ -3,18 +3,18 @@
3
3
  from itertools import product
4
4
 
5
5
  for elem in product(["a", "b", "c", "d", "e"], repeat=3):
6
- print(elem)
6
+ print(*elem)
7
7
  ```
8
8
 
9
- **実行結果** [Wandbox](https://wandbox.org/permlink/mmOxOv29bbyejo7h)
9
+ **実行結果** [Wandbox](https://wandbox.org/permlink/lPCnGc7bQ5SqYe3F)
10
10
  ```
11
- ('a', 'a', 'a')
11
+ a a a
12
- ('a', 'a', 'b')
12
+ a a b
13
- ('a', 'a', 'c')
13
+ a a c
14
14
 
15
15
  ...中略...
16
16
 
17
- ('e', 'e', 'c')
17
+ e e c
18
- ('e', 'e', 'd')
18
+ e e d
19
- ('e', 'e', 'e')
19
+ e e e
20
20
  ```