Commit 89ea7a11 by BellCodeEditor

save project

parent 8d83b4f7
Showing with 6 additions and 2 deletions
......@@ -2,8 +2,8 @@ import turtle
screen=turtle.Screen()
screen.bgcolor("black")
pen = turtle.Pen()
colors=["red","orange","yellow","green"]#创建列表"red","orange","yellow","green"
for i in range(1,300):
colors=["red","blue","yellow","green"]#创建列表"red","orange","yellow","green"
for i in range(1,10000):
pen.forward(i)
pen.pencolor(colors[i%4])#对使用次数对列表取余
pen.right(91)
......
j = 5 # 列
i = 5 # 行
print(j, '*', i,'=', (j * i))
\ 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