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

質問編集履歴

2

書式の修正

2021/12/05 06:39

投稿

syc98
syc98

スコア6

title CHANGED
File without changes
body CHANGED
@@ -3,7 +3,7 @@
3
3
  ```
4
4
  Traceback (most recent call last):
5
5
  File "C:-------------------------------.py", line 546, in <module>
6
- a.master()
6
+ a.------()
7
7
  File "C:-------------------------------.py", line 486, in ------
8
8
  print(itertools.pairwise(i[6]))
9
9
  AttributeError: module 'itertools' has no attribute 'pairwise'

1

pairwiseの因数についての説明を追記しました。

2021/12/05 06:38

投稿

syc98
syc98

スコア6

title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,10 @@
9
9
  AttributeError: module 'itertools' has no attribute 'pairwise'
10
10
  ```
11
11
 
12
- 何が原因でエラーが出ているのか、ご教授お願い致します。
12
+ 何が原因でエラーが出ているのか、ご教授お願い致します。
13
+
14
+
15
+ 追記:pairwiseの因数にi[6]とありますが、以下がその因数の例となります。
16
+ ```
17
+ ['P_10_1', 'P_9_2', 'P_9_3', 'P_10_4', 'P_17_5', 'P_18_6', 'P_18_7', 'P_19_8', 'P_20_9', 'P_27_10', 'P_27_11', 'P_26_12', 'P_25_13', 'P_24_14', 'P_23_15', 'P_30_16']
18
+ ```