Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson15-diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 772dd3bd authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 9b0cfbbe c161578l1528p256a14963/wx292767
Hide whitespace changes
Inline Side-by-side
Showing with 6 additions and 9 deletions
  • a .py
  • my_tree.py
a .py
View file @ 772dd3bd
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
# 30n 94.2 # 30n 94.2
# 31n 97.34 # 31n 97.34
# 32n 100.47 # 32n 100.47
# 33n # 33n 103.61
# 34n # 34n 106.64
# 35n # 35n 109.78
# 36n # 36n
# 37n # 37n
# 38n # 38n
......
This diff is collapsed. Click to expand it.
my_tree.py
View file @ 772dd3bd
...@@ -15,14 +15,11 @@ def tree(n): ...@@ -15,14 +15,11 @@ def tree(n):
if n >= 50: if n >= 50:
pen.forward(n) pen.forward(n)
pen.right(30) pen.right(30)
pen.forward(n/2) tree(n-50)
pen.up()
pen.backward(n/2)
pen.down()
pen.left(60) pen.left(60)
pen.forward(n/2) tree(n-50)
pen.up()
pen.right(30) pen.right(30)
pen.up()
pen.backward(n) pen.backward(n)
pen.down() pen.down()
tree(100) tree(100)
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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