课堂练习-米字彩图

1+

import turtle

cs=['red','orange','yellow','green','cyan','blue','purple','black']

turtle.bgcolor('pink')
turtle.pensize(4)

for x in range(8):
    c=cs[x]
    turtle.color(c)
    turtle.fd(100)
    turtle.bk(100)
    turtle.rt(45)





1+

发表评论