Commit b7c97470 by BellCodeEditor

auto save

parent 97a02a06
Showing with 9 additions and 11 deletions
import turtle import turtle #调用海龟画图库
s=1 #设置初始长度变量 s=1 #设置初始长度变量
pen = turtle.Pen() pen = turtle.Pen() #设置画笔变量pen
# 请创造师在下面接着创作 pen.speed(0) #设置画笔速度
for i in range(300): #有限循环300次,注意括号和英文的冒号 for i in range(300): #有限循环300次,注意括号和英文的冒号
pen.forward(s) pen.forward(s) #前进s步
pen.right(91) pen.right(91) #右转91度
s=s+1 s=s+1 #变量s每次+1
pen.hideturtle() #隐藏画笔
# 隐藏画笔,保存画布 turtle.done() #保存画布
pen.hideturtle() \ No newline at end of file
turtle.done()
\ 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