回答編集履歴
2
追記
test
CHANGED
@@ -121,3 +121,21 @@
|
|
121
121
|
t.left(3)
|
122
122
|
|
123
123
|
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
---
|
128
|
+
|
129
|
+
【追記】
|
130
|
+
|
131
|
+
下記部分を修正しました。
|
132
|
+
|
133
|
+
```python
|
134
|
+
|
135
|
+
for i in range(0, 120):
|
136
|
+
|
137
|
+
t.left(3)
|
138
|
+
|
139
|
+
t.fd(dist)
|
140
|
+
|
141
|
+
```
|
1
追記
test
CHANGED
@@ -63,3 +63,61 @@
|
|
63
63
|
t.right(3)
|
64
64
|
|
65
65
|
```
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
---
|
70
|
+
|
71
|
+
【追記】
|
72
|
+
|
73
|
+
下記ではどうでしょうか?
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```Python
|
78
|
+
|
79
|
+
import turtle
|
80
|
+
|
81
|
+
import math
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
x = 50
|
86
|
+
|
87
|
+
y = 75
|
88
|
+
|
89
|
+
radius = 100
|
90
|
+
|
91
|
+
dist = 2.0*math.pi*radius /120.0
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
t = turtle.Turtle()
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
t.penup()
|
100
|
+
|
101
|
+
t.setposition(x, y)
|
102
|
+
|
103
|
+
t.pendown()
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
t.penup()
|
108
|
+
|
109
|
+
t.forward(radius)
|
110
|
+
|
111
|
+
t.left(90)
|
112
|
+
|
113
|
+
t.pendown()
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
for i in range(0, 120):
|
118
|
+
|
119
|
+
t.fd(dist)
|
120
|
+
|
121
|
+
t.left(3)
|
122
|
+
|
123
|
+
```
|