用python画一个图形

0

import turtle

turtle.color('yellow')
turtle.shapesize(10)
turtle.pensize(2)
turtle.bgcolor('black')

i = 0
while i < 30:
    turtle.fd(i)
    turtle.left(36)
    i = i + 1
    
print('运行完毕')
turtle.done()

0

发表评论