質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
python初心者です。pythonでxとyの値を入力すると、結んでグラフを書くようにプログラムしたんですけど、エラーが発生して、エラーの原因がわからないので、良ければ見ていただけますか?
|
2
2
|
|
3
3
|
コードとエラーは以下です。
|
4
|
+
|
5
|
+
### コード
|
4
6
|
|
5
7
|
```
|
6
8
|
|
@@ -80,9 +82,11 @@
|
|
80
82
|
|
81
83
|
```
|
82
84
|
|
83
|
-
エラー
|
85
|
+
### エラー
|
84
86
|
|
87
|
+
Traceback (most recent call last):
|
88
|
+
|
85
|
-
|
89
|
+
File "trajectory.py", line29, in<module>
|
86
90
|
|
87
91
|
x.append(sorted_coordinate[i][0])
|
88
92
|
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,4 +86,4 @@
|
|
86
86
|
|
87
87
|
x.append(sorted_coordinate[i][0])
|
88
88
|
|
89
|
-
Ty
|
89
|
+
Typeerror: list indices must be integers or slices, not list
|
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
python初心者です。pythonでxとyの値を入力すると、結んでグラフを書くようにプログラムしたんですけど、エラーが発生して、エラーの原因がわからないので、良ければ見ていただけますか?
|
2
2
|
|
3
|
-
コードとエラーは以下です。
|
3
|
+
コードとエラーは以下です。
|
4
|
+
|
5
|
+
```
|
4
6
|
|
5
7
|
import matplotlib.pyplot as plt
|
6
8
|
|