Commit e8e21cf4 by BellCodeEditor

auto save

parent b1eb10cf
Showing with 14 additions and 7 deletions
sum=0
for i in range(1,11):
sum=sum+i
print(i)
print(sum)
\ No newline at end of file
......@@ -3,16 +3,17 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
s=turtle.Screen()
s.bgcolor("black")
p = turtle.Pen()
p.speed=10000
p.pensize(3)
l=["red","orange","yellow","green"]
p.speed=999
p.pensize(1)
l=["red","orange","yellow","green","white","purple"]
# 请创造师在下面接着创作
for i in range(1,300):
p.pencolor(l[i%4])
for i in range(1,300):#i为循环变量
p.pencolor(l[i%6])
p.forward(i)
p.right(91)
p.right(60.5)
# 隐藏画笔,保存画布
......
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