Commit c0658508 by BellCodeEditor

save project

parent 3a2aa425
Showing with 9 additions and 11 deletions
""" import turtle #导入画笔
请使用turtle模块画出五角星 open=turtle.pen() #打开画布
""" pen.fillcolor("red") #设置颜色
import turtle pen.begin_fill() #开始填充
open=turtle.pen() For i in range(5) #重复执行
pen.fillcolor("red") pen.forward(200) #画五脚星
pen.begin_fill() pen.right(144)
For i in range(5)
pen.forward(200)
pen.right(144)
pen.hideturtle() pen.hideturtle()
pen.endfill() pen.endfill()
pen.done() 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