Commit 50e45f20 by BellCodeEditor

auto save

parent 0662bab3
Showing with 3 additions and 3 deletions
...@@ -7,8 +7,8 @@ def tree(n): ...@@ -7,8 +7,8 @@ def tree(n):
a=random.randint(0,30) a=random.randint(0,30)
l=random.randint(1,15) l=random.randint(1,15)
c=random.choice(color) c=random.choice(color)
pen.forward(n)
pen.forward(n)
pen.right(a) pen.right(a)
tree(n-l) tree(n-l)
pen.left(2*a) pen.left(2*a)
...@@ -17,9 +17,9 @@ def tree(n): ...@@ -17,9 +17,9 @@ def tree(n):
pen.up() pen.up()
pen.backward(n) # 后退 pen.backward(n) # 后退
pen.down() pen.down()
if l<=10: if l<=12:
pen.color(c) pen.color(c)
pen.pensize(l/3) pen.pensize(l/2)
else: else:
pen.color('sienna') pen.color('sienna')
pen.pensize(l/10) pen.pensize(l/10)
......
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