Commit 9c823486 by BellCodeEditor

save project

parent bc82ac2b
Showing with 4 additions and 4 deletions
...@@ -2,11 +2,10 @@ ...@@ -2,11 +2,10 @@
# 使用turtle模块画图 # 使用turtle模块画图
# 每次移动都增加画笔移动的长度,并旋转91 # 每次移动都增加画笔移动的长度,并旋转91
import turtle import turtle
distance = 1
pen=turtle.Pen() pen=turtle.Pen()
for i in range(300): for i in range(1,301):
pen.right(91) pen.right(91)
pen.forward(distance) pen.forward(i)
distance+=1
pen.hideturtle() pen.hideturtle()
pen.done() pen.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