Commit 08d19439 by BellCodeEditor

save project

parent 9267765c
Showing with 8 additions and 7 deletions
...@@ -11,10 +11,10 @@ distance=1 ...@@ -11,10 +11,10 @@ distance=1
scr=turtle.Screen() scr=turtle.Screen()
scr.bgcolor("black") scr.bgcolor("black")
color=["green","red","orange","yellow"] color=["green","red","orange","yellow"]
for i in range(1,300): for i in range(1,10000000000000):
pen.pencolor(color[i%4]) pen.pencolor(color[i%4])
pen.forward(i) pen.forward(i)
pen.right(111) pen.right(179)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
i = 5 # 行 for i in range(1,10): # 列
for j in range(1,10): # 列 for j in range(1,i+1):
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 print(i,"*",j,"=",i*j,end=" ")
print(i,"*",j,"=",i*j,end=" ") print()
\ No newline at end of file \ 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