画米字

1+

import turtle

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

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

1+

发表评论