Commit b0128609 by BellCodeEditor

auto save

parent fa0dff60
Showing with 18 additions and 0 deletions
import turtle
pen = turtle.Pen()
#选择填充的颜色
pen.fillcolor("yellow")
#开始填充
pen.begin_fill()
#开始绘制图案
for i in range(5):
pen.forward(200)
pen.right(144)
#结束填充
pen.end_fill()
#隐藏画笔
pen.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