Commit 57be7ad7 by BellCodeEditor

save project

parent 11a62027
Showing with 2 additions and 3 deletions
import turtle import turtle
import random
pen = turtle.Turtle() pen = turtle.Turtle()
pen.color('sienna') pen.color('sienna')
# 画布大小 # 画布大小
w = turtle.Screen() w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦 w.bgcolor('wheat') # wheat小麦
def tree(n): #snow lightcoral
if n>50: if n>50:
pen.speed(100) pen.speed(100)
pen.fd(n) pen.fd(n)
pen.rt(30) pen.rt(30)
tree(n-10) tree(n-10)
pen.left(60) pen.left(60)
......
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