Commit 83d3f672 by BellCodeEditor

save project

parent bae41ef6
Showing with 30 additions and 0 deletions
import turtle
def t(n):
if n>=0:
pen.forward(n)
pen.right(30)
t(n-10)
pen.left(60)
t(n-10)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
pen = turtle.Turtle()
pen.color('sienna')
# 画布大小
w = turtle.Screen()
w.bgcolor('wheat') # wheat小今后九月份好i一口i有益于i语录体uu一股有i也同样关于u
pen.speed(100)
# 移动到起
pen.left(90)
pen.up()
pen.backward(100)
pen.down()
t(99)
turtle.done()
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