Commit 4fd715e2 by BellCodeEditor

auto save

parent 4ea37e4a
Showing with 18 additions and 17 deletions
""" # import turtle
使用turtle模块画图 # a=turtle.Pen()
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 # c=["blue","red","orange","pink"]
""" # b=turtle.Screen()
import turtle # b.bgcolor("black")
# a.speed(99999999999)
pen = turtle.Pen() # for i in range(600):
# 请创造师在下面接着创作 # a.color(c[i%4])
distance=1 # a.forward(i)
for i in range(300): # a.right(91)
pen.forward(distance) # a.hideturtle()
distance+=1 # turtle.done()
pen.right(121) for i in range(1,10):
# 隐藏画笔,保存画布 for j in range(1,10):
pen.hideturtle() if i>=j:
turtle.done() print(j,"*",i,"=",j*i,end=" ")
\ No newline at end of file print()
\ 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