Commit 374fcb02 by BellCodeEditor

save project

parent ad43b4ca
Showing with 4 additions and 1 deletions
...@@ -5,9 +5,12 @@ pen.color('sienna') ...@@ -5,9 +5,12 @@ pen.color('sienna')
# 画布大小 # 画布大小
w = turtle.Screen() w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦 w.bgcolor('wheat') # wheat小麦
w.bgcolor("wheat")
def tree(n): def tree(n):
if(n>=50) if(n>=50)
if n<=12
x=["snow","lightcoral"]
y=random.choice(x)
pen.forward(n) pen.forward(n)
pen.right(30) pen.right(30)
tree(n-10) tree(n-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