Commit 877508fc by BellCodeEditor

auto save

parent a075876f
Showing with 24 additions and 0 deletions
...@@ -12,4 +12,28 @@ pen.up() ...@@ -12,4 +12,28 @@ pen.up()
pen.backward(150) # 后退 pen.backward(150) # 后退
pen.down() pen.down()
#主干
pen.fd(100)
#右边分叉
pen.right(30)
pen.fd(50)
pen.up() #返回分叉点
pen.bk(50)
pen.down()
#左边分叉
pen.left(60)
pen.fd(50)
pen.up() #返回分叉点
pen.bk(50)
pen.down()
#返回树干
pen.right(30)
pen.up() #返回分叉点
pen.bk(100)
pen.down()
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