Commit 06bec02d by BellCodeEditor

auto save

parent 5d50df15
Showing with 12 additions and 10 deletions
import turtle
import turtle #准备工具包
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()
pen=turtle.Pen()#准备画笔
pen.speed(10)#设置速度为10
pen.fillcolor("blue")#设置为蓝色
pen.begin_fill()#开始填充颜色
for i in range():#重复36次
pen.forward(200)#前进200步
pen.right(6)#右转170度
pen.end_fill() #结束填充颜色
pen.hideturtle()#隐藏
turtle.done()#保存画布
\ No newline at end of file
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