Commit 5412ce43 by BellCodeEditor

save project

parent b2d59dbd
Showing with 23 additions and 0 deletions
#导入turtle
import turtle
#创建一支画笔
p = turtle.Pen()
#设置画笔形状
p.shape('turtle')
#改变画笔颜色
p.color('pink')
#设置填充颜色
p.fillcolor('pink')
#开始填充
p.begin_fill()
#画五角星
for i in range(5):
p.forward(200)
p.right(144)
#结束填充
p.end_fill()
#隐藏画笔
p.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