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

質問編集履歴

3

書式の改善

2021/09/06 05:56

投稿

rawr
rawr

スコア1

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
- エラーメッセージ
9
+ ```Python
10
10
  Traceback (most recent call last):
11
11
  File "C:\Users\1200728\Desktop\test\test.py", line 29, in <module>
12
12
  ball.speed(0)
@@ -118,10 +118,11 @@
118
118
  if (ball.xcor()<-340)and(ball.xcor()<-350)and(ball.ycor()<leftpaddle.ycor()+40 and ball.ycor()>leftpaddle.ycor()-40):
119
119
  ball.setx(340)
120
120
  ballxdirection=ballxdirection*-1
121
+ ```
121
122
 
122
123
 
123
- ``Python
124
124
 
125
+
125
126
  ### 試したこと
126
127
 
127
128
  その前に出ていたsyntax errorはすべて修正しました。

2

書式の改善

2021/09/06 05:56

投稿

rawr
rawr

スコア1

title CHANGED
File without changes
body CHANGED
@@ -120,9 +120,7 @@
120
120
  ballxdirection=ballxdirection*-1
121
121
 
122
122
 
123
- ```ここに言語名を入力
124
- Python
123
+ ``Python
125
- ソースコード
126
124
 
127
125
  ### 試したこと
128
126
 

1

書式の改善

2021/09/06 01:36

投稿

rawr
rawr

スコア1

title CHANGED
@@ -1,1 +1,1 @@
1
- pyhon attribute error につい【初心者】
1
+ pyhon attribute error の原因を探っいます
body CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
 
7
7
  ### 発生している問題・エラーメッセージ
8
+
9
+ エラーメッセージ
8
10
  Traceback (most recent call last):
9
11
  File "C:\Users\1200728\Desktop\test\test.py", line 29, in <module>
10
12
  ball.speed(0)
@@ -12,14 +14,7 @@
12
14
  return self._speed
13
15
  AttributeError: 'int' object has no attribute '_speed'
14
16
 
15
- エラーメッセージ
16
- ```
17
-
18
17
  ### 該当のソースコード
19
-
20
- ```ここに言語名を入力
21
- Python
22
- ソースコード
23
18
  import turtle as t
24
19
  playerAscore=0
25
20
  playerBscore=0
@@ -124,6 +119,11 @@
124
119
  ball.setx(340)
125
120
  ballxdirection=ballxdirection*-1
126
121
 
122
+
123
+ ```ここに言語名を入力
124
+ Python
125
+ ソースコード
126
+
127
127
  ### 試したこと
128
128
 
129
129
  その前に出ていたsyntax errorはすべて修正しました。