IT
SMA
Terselesaikan
最後の写真のようなプログラムにしたいのですが、どこが間違っているのか分かりません。Pythonです。
D
50
40
30
20
10
0
●
0
10
20
30
50
1 import matplotlib.pyplot as pit
2
3 x=0
4 y=0
5 vx=5
8 vy=10
7t=0
9 boalx = []
10 boaly = []
11
12 while t <300:
13 #print ("(",x.",",y,")")
14
boalx.append(x)
boaly.append(y)
18 X=X+vy
19
y=y+vy
20
vy=vy-1
21
ify <= 0:
break
22
23
t=t+1
24
25 #print ("(",x,"s",y,"")
26
27 boalx.append(x)
28 boaly.append (y)
29
30 plt.scatter (boalx, boaly)
31 plt.show()
Answers
No answer yet
Apa kebingunganmu sudah terpecahkan?
Pengguna yang melihat pertanyaan ini
juga melihat pertanyaan-pertanyaan ini 😉