lg916843
from turtle import *

def mygoto(x,y):
    up()
    goto(x,y)
    down()

setup(600,400,0,0)
color(\'yellow\')
bgcolor(\'red\')
fillcolor(\'yellow\')

mygoto(-250,75)
begin_fill()
for i in range(5):
    forward(100)
    right(144)
end_fill()

mygoto(-100,150)
begin_fill()
for i in range(5):
    forward(50)
    right(144)
end_fill()

mygoto(-50,100)
begin_fill()
for i in range(5):
    forward(50)
    right(144)
end_fill()

mygoto(-50,50)
begin_fill()
for i in range(5):
    forward(50)
    right(144)
end_fill()

mygoto(-100,0)
begin_fill()
for i in range(5):
    forward(50)
    right(144)
end_fill()

done()



 




 

 

分类:

技术点:

相关文章: