Commit fd2bb8ae by BellCodeEditor

auto save

parent 91339868
Showing with 11 additions and 7 deletions
import turtle import turtle #导入
pen=turtle.Pen() pen=turtle.Pen() #创建画笔
for i in range(5): pen.fillcolor("red") #填充红色
forward(200) pen.begin_fill() #填充开始
right(144) for i in range(5): #重复执行5次
pen.hideturtle() pen.forward(200) #移动200步
pen.down() pen.right(144) #右转144°
pen.end_fill() #填充结束
pen.hideturtle() #隐藏画笔
turtle.down() #保存画布
\ 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