Commit 38bd38c7 by BellCodeEditor

auto save

parent 3ce31792
Showing with 17 additions and 16 deletions
j=1
i=
print(j,"*",i,"=",(j*i))
\ No newline at end of file
...@@ -3,19 +3,15 @@ ...@@ -3,19 +3,15 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
""" """
import turtle import turtle
import random
pen=turtle.Pen()
pen = turtle.Pen() screen=turtle.Screen()
screen = turtle.Screen() screen.bgcolor("black")
screen.bgcolor("light pink") pen.speed(0)
colors=["white","blue","violet","cyan"] color=["red","blue","yellow"]
# 请创造师在下面接着创作 while True:
distance=1 pen.pencolor(random.choice(color))
pen.speed(1000) pen.forward(2)
for i in range(1,300): pen.left(1)
pen.pencolor(colors[i%4]) pen.right(2)
pen.forward(i) turtle.done()
pen.right(91) \ No newline at end of file
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
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