Commit 9f53cc0f by BellCodeEditor

auto save

parent 129a074c
Showing with 7 additions and 8 deletions
import turtle
import turtle #导入turtle模块
pen = turtle.Turtle()
pen.color('sienna')
pen = turtle.Turtle() #创建画笔
pen.color('sienna') #画笔的颜色
# 画布大小
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
w = turtle.Screen() #创建画布
w.bgcolor('wheat') # 画布颜色 wheat小麦
# 移动到起点
pen.left(90)
pen.left(90) #画笔的角度向左旋转90度 ,朝向正上方
pen.up()
pen.backward(150) # 后退
pen.backward(150) # 后退,向下移动150的距离
pen.down()
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