Commit fffbc387 by BellCodeEditor

auto save

parent 5da06176
Showing with 9 additions and 5 deletions
...@@ -14,12 +14,16 @@ pen.left(90) ...@@ -14,12 +14,16 @@ pen.left(90)
def f(n): def f(n):
if n>=50: if n>=50:
pen.pensize(2)
pen.forward(n) pen.forward(n)
pen.left(30) p=random.randint(0,30)
f(n-50) l=random.randint(1,15)
pen.right(30) pen.right(p)
f(n-50) f(n-l)
pen.left(30) pen.left(2*p)
f(n-l)
pen.right(p)
pen.up() pen.up()
......
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