画图
from turtle import *speed(30)
pensize(9)
MyloveColor=['violet','green','orange','yellow','purple','pink']
penColor=['lightgreen','lightblue','lightpink']
Angel=180
R=90
step=2*R
for j in range(0,5,1):
for i in range(0,5,1):
begin_fill()
color(MyloveColor,penColor)
forward(step)
circle(R,Angel)
right(90)
circle(R,Angel)
forward(step)
end_fill()
forward(60)
left(18)
R=R-10
step=2*R
hideturtle()
done() penColor=['lightgreen','lightblue','lightpink']
应该有5种颜色
color(MyloveColor,penColor)
IndexError: list index out of range
页:
[1]