1
import turtle
turtle.color("yellow")
turtle.bgcolor("red")
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(100)
turtle.right(144)
turtle.end_fill()
2
import turtle
for i in range(5):
turtle.up()
turtle.goto(0,-20*(i+1))
turtle.down()
turtle.circle(20*(i+1))
turtle.write(10-i)
3
from turtle import *
color("red","yellow")
begin_fill()
while True:
forward(200)
left(175)
if(abs(pos()))<1:
break
end_fill()
4
import turtle
turtle.color("yellow")turtle.bgcolor("red")turtle.fillcolor("yellow")def yuangoto(x,y):
turtle.up() turtle.goto(x,y) turtle.down()yuangoto(-250,75)
turtle.begin_fill()
for i in range(5): turtle.forward(100) turtle.right(144)turtle.end_fill() yuangoto(-160,170)turtle.begin_fill()
for i in range(5): turtle.forward(50) turtle.left(144)turtle.end_fill()yuangoto(-100,120)
turtle.begin_fill()
for i in range(5): turtle.forward(50) turtle.left(144)turtle.end_fill()yuangoto(-60,40)
turtle.begin_fill()
for i in range(5): turtle.forward(50) turtle.left(144)turtle.end_fill()yuangoto(-100,-40)
turtle.begin_fill()
for i in range(5): turtle.forward(50) turtle.left(144)turtle.end_fill()