turtle我想用五種顏色畫五個圓?
from turtle import *
colors = ['red', 'blue', 'green', 'yellow', 'orange', 'purple']
def circle():
for i in range(36):
forward(20)
left(10)
for i in colors:
color(i)
begin_fill()
circle()
end_fill()
left(60)
turtle我想用五種顏色畫五個圓?
from turtle import *
colors = ['red', 'blue', 'green', 'yellow', 'orange', 'purple']
def circle():
for i in range(36):
forward(20)
left(10)
for i in colors:
color(i)
begin_fill()
circle()
end_fill()
left(60)