import turtle as t t.speed(10) t.pencolor("yellow") t.fillcolor("red") for num in range(1,6): for i in range(1,5): t.forward(200) t.right(144) t.forward(200) t.goto(num*50,num*50) t.penup() t.goto(-100,-200) t.color('green','red') for j in range(1,5): t.begin_fill() t.circle(50) t.end_fill() t.goto(j*50,j*50) t.done()
画的不是很帅气,随便看着吧