Commit 4fcd2726 by BellCodeEditor

save project

parent c20f0945
Showing with 17 additions and 0 deletions
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen = turtle.Pen()
# 请创造师在下面接着创作
distance=1
for i in range(54566547656798765678987656789876567890987654785872758737975997887997839757793758787759783849358973985975878789885427902786897549878957349875942073958752058359285937259835974389808993288058094879389899882345434543454565456789987656789876545678765434567898765445678909876544567899876543456789098765433567890987654323456789098765433456789876543212345678998765456789009876543345678998765434567898765432234567890987654345678900987654567890987654345678765434567890987654345678909876543345678987654323456789098765433456789098765432345678987654334567898765567787888787667876545678):
pen.forward(distance)
distance+=1
pen.right(91)
# 隐藏画笔,保存画布
pen.hideturtle()
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