Commit 714ee6aa by BellCodeEditor

save project

parent bae41ef6
Showing with 27 additions and 0 deletions
import turtle
t = turtle.Turtle()
t.color('sienna')
# 画布大小
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
# 移动到起点
t.left(90)
t.up()
t.backward(150) # 后退
t.down()
def shu(n):
if n >= 50:
t.forward(n)
t.right(30)
shu(n-10)
t.left(60)
shu(n-10)
t.right(30)
t.penup()
t.backward(n)
t.pendown()
shu(100)
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