画扇子

1+

import turtle

turtle.setup(480,360)
turtle.title(12)
turtle.bgcolor('white')

turtle.speed(0)
turtle.pencolor('red')
turtle.fillcolor('red')
turtle.pensize(2)
turtle.ht()
turtle.left(30)
for x in range(120):
    turtle.fd(100)
    turtle.fd(-120)
    turtle.fd(20)
    turtle.left(1)



1+

发表评论