回答編集履歴
2
コード修正
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
velocity_y=5
|
38
38
|
|
39
|
-
ys = [y+
|
39
|
+
ys = [y + velocity_y for y in ys]
|
40
40
|
|
41
41
|
print(ys)
|
42
42
|
|
1
追記
test
CHANGED
@@ -21,3 +21,25 @@
|
|
21
21
|
# [455, 405, 355, 305, 255, 205, 155, 105, 55, 5, -45, -95, -145, -195, -245]
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
それが嫌な場合はこちら
|
28
|
+
|
29
|
+
```python3
|
30
|
+
|
31
|
+
ys=[450]
|
32
|
+
|
33
|
+
for _ in range(14):
|
34
|
+
|
35
|
+
ys.append(ys[-1]-50)
|
36
|
+
|
37
|
+
velocity_y=5
|
38
|
+
|
39
|
+
ys = [y+5 for y in ys]
|
40
|
+
|
41
|
+
print(ys)
|
42
|
+
|
43
|
+
# [455, 405, 355, 305, 255, 205, 155, 105, 55, 5, -45, -95, -145, -195, -245]
|
44
|
+
|
45
|
+
```
|