Commit 38513604 by BellCodeEditor

save project

parent fa0dff60
Showing with 19 additions and 0 deletions
# 导入库
import turtle
# 设置画笔
p = turtle.Pen()
# 设置(形状、颜色)
p.shape('turtle')
p.color('yellow')
p.fillcolor('yellow')
# 开始填充
p.begin_fill()
# 画五角星
for i in range(5):
p.forward(200)
p.left(144)
p.hideturtle()
p.end_fill()
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