Commit 91b7a68f by BellCodeEditor

auto save

parent 46e24081
Showing with 4 additions and 3 deletions
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("black") screen.bgcolor("black")
p=screen.textinput("重复多少次")
love=int(p)
colors=["skyblue","yellow","white","pink"] colors=["skyblue","yellow","white","pink"]
pen = turtle.Pen() pen = turtle.Pen()
# 请创造师在下面接着创作 # 请创造师在下面接着创作
p=screen.textinput("重复多少次")
o=int(p) for i in range(10,love,1):
for i in range(10,o,1):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
......
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