Commit 76d1834c by BellCodeEditor

auto save

parent 3ce31792
Showing with 26 additions and 2 deletions
......@@ -3,8 +3,6 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("light pink")
......@@ -19,3 +17,25 @@ for i in range(1,300):
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
#创建颜色列表,放四个颜色进去,每次去取余的方式改变颜色
i = 1
for j in range(1,10):
print(str(i)+"X"+str(j)+"="+str(i*j),end=" ")
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