Commit 7d7aa0fd by BellCodeEditor

save project

parent 40217bff
Showing with 7 additions and 6 deletions
...@@ -7,14 +7,15 @@ w = turtle.Screen() ...@@ -7,14 +7,15 @@ w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦 w.bgcolor('wheat') # wheat小麦
# 移动到起点 # 移动到起点
pen.left(90) pen.left(90)
pen.up() pen.up()
pen.backward(150) # 后退 pen.backward(150) # 后退
pen.down() pen.down()
pen.forward(100) def t(n):
pen.right(30) pen.forward(n)
pen.forward(50) pen.right(30)
pen.forward(-50) t(n-10)
pen.left(60) pen.left(60)
pen.forward(50) t(n-10)
turtle.done() turtle.done()
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