Commit 3a4fb6c6 by BellCodeEditor

save project

parent faf8dd05
Showing with 12 additions and 0 deletions
import turtle
i=int(turtle.textinput("fengche","层数"))
turtle.bgcolor("black")
turtle.speed(10)
color=["red","blue","green","pink"]
for a in range(1,i):
turtle.color(color[a%4])
turtle.forward(a)
turtle.right(91)
turtle.hideturtle()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment