Commit 06bec02d by BellCodeEditor

auto save

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