Commit ce5828a7 by BellCodeEditor

auto save

parent 3efb6e66
Showing with 10 additions and 9 deletions
import turtle #导入画笔 import turtle #导入画笔
open=turtle.pen() #打开画布 p=turtle.Pen() #打开画布
pen.fillcolor("red") #设置颜色 p.fillcolor("red") #设置颜色
pen.begin_fill() #开始填充 p.begin_fill() #开始填充
for i in range(5) #重复执行 for i in range(5): #重复执行
pen.forward(200) #画五脚星 p.forward(200) #画五脚星
pen.right(144) p.right(144)
pen.hideturtle() p.hideturtle()
pen.endfill() p.end_fill()
pen.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