Python funny
import turtle
turtle.pensize(2)
turtle.bgcolor("black")
colors=["red","yellow","purple","blue"]
for x in range(400):
turtle.forward(2*x)
turtle.color(colors[x%4])
turtle.left(91)
turtle.done()
画图的小程序,挺好玩的先记下了!
import turtle
turtle.pensize(2)
turtle.bgcolor("black")
colors=["red","yellow","purple","blue"]
for x in range(400):
turtle.forward(2*x)
turtle.color(colors[x%4])
turtle.left(91)
turtle.done()
画图的小程序,挺好玩的先记下了!